Add geojson module in io package

This commit is contained in:
Tim Schaub
2013-01-20 00:28:07 -07:00
parent 497eac82c2
commit 4c2ad60619
5 changed files with 245 additions and 32 deletions

View File

@@ -6,17 +6,29 @@
*/
/**
* @constructor
*/
var GeoJSONCRS = function() {};
var GeoJSONObject = function() {};
/**
* @type {string}
*/
GeoJSONCRS.prototype.type;
GeoJSONObject.prototype.type;
/**
* @type {!GeoJSONCRS|undefined}
*/
GeoJSONObject.prototype.crs;
/**
* @constructor
* @extends {GeoJSONObject}
*/
var GeoJSONCRS = function() {};
/**
@@ -28,35 +40,38 @@ GeoJSONCRS.prototype.properties;
/**
* @constructor
* @extends {GeoJSONObject}
*/
var GeoJSONGeometry = function() {};
/**
* @type {string}
*/
GeoJSONGeometry.prototype.type;
/**
* @type {!Array.<number>|!Array.<!Array.<number>>}
* @type {!Array.<number>|!Array.<!Array.<number>>|
* !Array.<!Array.<!Array.<number>>>}
*/
GeoJSONGeometry.prototype.coordinates;
/**
* @constructor
* @extends {GeoJSONObject}
*/
var GeoJSONGeometryCollection = function() {};
/**
* @type {!Array.<GeoJSONGeometry>}
*/
GeoJSONGeometryCollection.prototype.geometries;
/**
* @constructor
* @extends {GeoJSONObject}
*/
var GeoJSONFeature = function() {};
/**
* @type {string}
*/
GeoJSONFeature.prototype.type;
/**
* @type {GeoJSONGeometry}
*/
@@ -72,16 +87,11 @@ GeoJSONFeature.prototype.properties;
/**
* @constructor
* @extends {GeoJSONObject}
*/
var GeoJSONFeatureCollection = function() {};
/**
* @type {string}
*/
GeoJSONFeatureCollection.prototype.type;
/**
* @type {!Array.<GeoJSONFeature>}
*/
@@ -94,13 +104,3 @@ GeoJSONFeatureCollection.prototype.features;
GeoJSONFeatureCollection.prototype.bbox;
/**
* @type {!GeoJSONCRS|undefined}
*/
GeoJSONFeatureCollection.prototype.crs;
/**
* @type {!Object.<string, *>}
*/
GeoJSONFeatureCollection.prototype.properties;