GeoJSON
GeoJSON | |
---|---|
File extension : |
.geojson
|
MIME type : | application / geo + json |
Initial release: | June 2008 |
Type: | GIS data format |
Extended by: | JSON |
Standard (s) : | RFC 7946 |
Website : | http://geojson.org/ |
GeoJSON is an open format for representing geographic data according to the Simple Feature Access specification. The JavaScript Object Notation is used for this.
history
Development of the GeoJSON format began in March 2007 by a group of developers through a mailing list. The format specification was passed in June 2008.
In April 2015 the Internet Engineering Task Force founded a Geographic JSON working group. GeoJSON published this as RFC 7946 in August 2016.
Geometries
Supported geometries include points (such as addresses and points of interest), lines (such as streets and rivers), polygons (such as national borders and land uses), and multipart types of these geometries.
Type | example | |
---|---|---|
Point
(Point) |
![]() |
{ "type": "Point",
"coordinates": [30, 10]
}
|
LineString
(Line) |
![]() |
{ "type": "LineString",
"coordinates": [
[30, 10], [10, 30], [40, 40]
]
}
|
Polygon |
![]() |
{ "type": "Polygon",
"coordinates": [
[[30, 10], [40, 40], [20, 40], [10, 20], [30, 10]]
]
}
|
![]() |
{ "type": "Polygon",
"coordinates": [
[[35, 10], [45, 45], [15, 40], [10, 20], [35, 10]],
[[20, 30], [35, 35], [30, 20], [20, 30]]
]
}
|
Type | example | |
---|---|---|
MultiPoint |
![]() |
{ "type": "MultiPoint",
"coordinates": [
[10, 40], [40, 30], [20, 20], [30, 10]
]
}
|
MultiLineString |
![]() |
{ "type": "MultiLineString",
"coordinates": [
[[10, 10], [20, 20], [10, 40]],
[[40, 40], [30, 30], [40, 20], [30, 10]]
]
}
|
MultiPolygon |
![]() |
{ "type": "MultiPolygon",
"coordinates": [
[
[[30, 20], [45, 40], [10, 40], [30, 20]]
],
[
[[15, 5], [40, 10], [10, 20], [5, 10], [15, 5]]
]
]
}
|
![]() |
{ "type": "MultiPolygon",
"coordinates": [
[
[[40, 40], [20, 45], [45, 30], [40, 40]]
],
[
[[20, 35], [10, 30], [10, 10], [30, 5], [45, 20], [20, 35]],
[[30, 20], [20, 15], [20, 25], [30, 20]]
]
]
}
|
example
{ "type": "FeatureCollection",
"features": [
{ "type": "Feature",
"geometry": {"type": "Point", "coordinates": [102.0, 0.5]},
"properties": {"prop0": "value0"}
},
{ "type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[102.0, 0.0], [103.0, 1.0], [104.0, 0.0], [105.0, 1.0]
]
},
"properties": {
"prop0": "value0",
"prop1": 0.0
}
},
{ "type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0],
[100.0, 1.0], [100.0, 0.0] ]
]
},
"properties": {
"prop0": "value0",
"prop1": {"this": "that"}
}
}
]
}
Software support
GeoJSON is supported by a variety of geographic information systems and mapping software , for example OpenLayers , Leaflet , MapServer , GeoServer , GeoDjango , PointPlot, GDAL , QGIS, and CartoDB . Furthermore, GeoJSON can be used in PostGIS and Mapnik because these two software packages use the GDAL library.
Bing Maps , Yahoo ! and Google Maps use / support GeoJSON in their programming interfaces .
GitHub displays GeoJSON files on an interactive map.
See also
- Geography Markup Language (GML)
- Keyhole Markup Language (KML)
- GPS Exchange Format (GPX)
Individual evidence
- ↑ March 2007 Archives by thread
- ↑ Geographic JSON (GeoJSON). In: datatracker.ietf.org. Retrieved August 12, 2016 .
- ^ GeoJSON. In: openlayers.org. Retrieved August 12, 2016 .
- ↑ Documentation - Leaflet - a JavaScript library for interactive maps. In: leafletjs.com. Retrieved August 12, 2016 .
- ↑ Template-Driven Output - MapServer 7.0.1 documentation. In: mapserver.org. Retrieved August 12, 2016 .
- ↑ OGR based WFS Output Format - GeoServer 2.10.x User Manual. In: docs.geoserver.org. Retrieved August 12, 2016 .
- ↑ GeoJSON Serializer | Django documentation | Django. In: docs.djangoproject.com. Retrieved August 12, 2016 .
- ↑ PointPlot. In: www.ndm.io. Retrieved August 12, 2016 .
- ^ GeoJSON. In: www.gdal.org. Retrieved August 12, 2016 .
- ↑ CARTO Documentation - CARTO Documentation. In: developers.cartodb.com. Retrieved August 12, 2016 .
- ↑ ST_GeomFromGeoJSON. In: postgis.net. Retrieved August 12, 2016 .
- ↑ ST_AsGeoJSON. In: postgis.net. Retrieved August 12, 2016 .
- ↑ mapnik / mapnik. In: GitHub. Retrieved August 12, 2016 .
- ↑ There's a map for that. June 13, 2013, accessed August 12, 2016 .
Web links
- geojson.org
- The GeoJSON Format Specification. on geojson.org
- geojson.io - Tool for interactive creation of GeoJSON files
- Christopher Andrews: Emerging Technology: AJAX and GeoJSON . September 18, 2007.
- GeoWebGuru: Technical Overview: GeoJSON . February 16, 2009.