Permalink
Browse files

Bare bones geom package

  • Loading branch information...
1 parent 464be78 commit 997c7145ab165bb90ec7924e6f28184345524ba3 @tschaub tschaub committed Jan 7, 2013
@@ -0,0 +1,7 @@
+goog.provide('ol.geom.Geometry');
+
+
+/**
+ * @interface
+ */
+ol.geom.Geometry = function() {};
@@ -0,0 +1,19 @@
+goog.provide('ol.geom.LineString');
+
+goog.require('ol.geom.Geometry');
+
+
+
+/**
+ * @constructor
+ * @implements {ol.geom.Geometry}
+ * @param {Array} coordinates Coordinates array.
+ */
+ol.geom.LineString = function(coordinates) {
+
+ /**
+ * @type {Array}
+ */
+ this.coordinates = coordinates;
+
+};
@@ -0,0 +1,19 @@
+goog.provide('ol.geom.MultiLineString');
+
+goog.require('ol.geom.Geometry');
+
+
+
+/**
+ * @constructor
+ * @implements {ol.geom.Geometry}
+ * @param {Array} coordinates Coordinates array.
+ */
+ol.geom.MultiLineString = function(coordinates) {
+
+ /**
+ * @type {Array}
+ */
+ this.coordinates = coordinates;
+
+};
@@ -0,0 +1,19 @@
+goog.provide('ol.geom.MultiPoint');
+
+goog.require('ol.geom.Geometry');
+
+
+
+/**
+ * @constructor
+ * @implements {ol.geom.Geometry}
+ * @param {Array} coordinates Coordinates array.
+ */
+ol.geom.MultiPoint = function(coordinates) {
+
+ /**
+ * @type {Array}
+ */
+ this.coordinates = coordinates;
+
+};
@@ -0,0 +1,19 @@
+goog.provide('ol.geom.MultiPolygon');
+
+goog.require('ol.geom.Geometry');
+
+
+
+/**
+ * @constructor
+ * @implements {ol.geom.Geometry}
+ * @param {Array} coordinates Coordinates array.
+ */
+ol.geom.MultiPolygon = function(coordinates) {
+
+ /**
+ * @type {Array}
+ */
+ this.coordinates = coordinates;
+
+};
View
@@ -0,0 +1,19 @@
+goog.provide('ol.geom.Point');
+
+goog.require('ol.geom.Geometry');
+
+
+
+/**
+ * @constructor
+ * @implements {ol.geom.Geometry}
+ * @param {Array} coordinates Coordinates array.
+ */
+ol.geom.Point = function(coordinates) {
+
+ /**
+ * @type {Array}
+ */
+ this.coordinates = coordinates;
+
+};
@@ -0,0 +1,19 @@
+goog.provide('ol.geom.Polygon');
+
+goog.require('ol.geom.Geometry');
+
+
+
+/**
+ * @constructor
+ * @implements {ol.geom.Geometry}
+ * @param {Array} coordinates Coordinates array.
+ */
+ol.geom.Polygon = function(coordinates) {
+
+ /**
+ * @type {Array}
+ */
+ this.coordinates = coordinates;
+
+};

0 comments on commit 997c714

Please sign in to comment.