GeoJSON
| Type of format | GIS file format |
|---|---|
| Extended from | JSON |
| Open format? | yes[1] |
| Website | geojson.org |
GeoJSON is an open[1] format for encoding a variety of geographic data structures. It is so named because it is based on JSON (JavaScript Object Notation). In fact, every GeoJSON data structure is also a JSON object, and thus JSON tools can also be used for processing GeoJSON data.[2]
GeoJSON allows geographic data to be stored in a human-readable way that is generally more compact than XML.
Spatial data format types supported in GeoJSON include points, polygons, multipolygons, features, geometry collections, and bounding boxes, which are stored along with feature information and attributes. The geometries and their properties will have a parent object, such as a feature collection.
GeoJSON also allows specifying a geographic coordinate system, using the OGC crs (coordinate reference system) property (preferred) or with an EPSG code. If a crs is not defined, GeoJSON will use the WGS84 geoid by default.
Contents |
History [edit]
The GeoJSON format specification was finalized in June 2008.
Example [edit]
{ "type": "Feature", "id": "OpenLayers.Feature.Vector_314", "properties": {}, "geometry": { "type": "Point", "coordinates": [ 97.03125, 39.7265625 ] }, "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } } }
Supported software [edit]
GeoJSON is supported by numerous mapping and GIS software packages, including OpenLayers,[3] Leaflet,[4] GeoServer,[5] GeoDjango,[6] GDAL,[7] and Safe Software FME.[8] CartoDB,[9] It is also possible to use GeoJSON with PostGIS[10] and Mapnik,[11] both of which handle the format via the GDAL OGR conversion library. Bing Maps, Yahoo! and Google also support GeoJSON in their API services. Google Maps integration is possible using libraries.,[12] or by iterating through the data and instancing equivalent objects.
References [edit]
- ^ a b Augmented Reality: the magic problem - Wired
- ^ The GeoJSON Format Specification.
- ^ http://openlayers.org/dev/examples/vector-formats.html
- ^ http://leafletjs.com/reference.html#geojson
- ^ http://svn.codehaus.org/geoserver/tags/2.0.0-alpha1/geoserver/release/README.txt
- ^ http://geodjango.org/docs/db-api.html
- ^ http://gdal.org/ogr/drv_geojson.html
- ^ http://www.safe.com/reader_writerPDF/geojson.pdf
- ^ http://developers.cartodb.com/documentation/cartodb-js.html
- ^ http://pugs.postgresql.org/files/Introduction_to_PostGIS_v1.0.pdf
- ^ http://svn.mapnik.org/tags/release-0.6.0/docs/api_docs/python/mapnik-module.html
- ^ https://github.com/JasonSanford/GeoJSON-to-Google-Maps
Sources [edit]
- http://geojson.org/
- http://geojson.org/geojson-spec.html
- http://www.directionsmag.com/article.php?article_id=2550
- http://www.bostongis.com/PrinterFriendly.aspx?content_name=sqlserver2008_postgis_mysql_compare
- http://blog.programmableweb.com/2008/08/27/3-top-data-formats-for-map-mashups-kml-georss-and-geojson/
- http://www.geowebguru.com/articles/97-technical-overview-geojson
- http://googlegeodevelopers.blogspot.com/2009/05/build-on-top-of-your-public-latitude.html
- http://www.springerlink.com/content/r38228t50x960168/