GeoJSON

from Wikipedia, the free encyclopedia
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.

Simple geometries
Type example
Point

(Point)

SFA Point.svg
{ "type": "Point",
    "coordinates": [30, 10]
}
LineString

(Line)

SFA LineString.svg
{ "type": "LineString",
    "coordinates": [
        [30, 10], [10, 30], [40, 40]
    ]
}
Polygon SFA Polygon.svg
{ "type": "Polygon",
    "coordinates": [
        [[30, 10], [40, 40], [20, 40], [10, 20], [30, 10]]
    ]
}
SFA Polygon with hole.svg
{ "type": "Polygon",
    "coordinates": [
        [[35, 10], [45, 45], [15, 40], [10, 20], [35, 10]],
        [[20, 30], [35, 35], [30, 20], [20, 30]]
    ]
}
Multi-part geometries
Type example
MultiPoint SFA MultiPoint.svg
{ "type": "MultiPoint",
    "coordinates": [
        [10, 40], [40, 30], [20, 20], [30, 10]
    ]
}
MultiLineString SFA MultiLineString.svg
{ "type": "MultiLineString",
    "coordinates": [
        [[10, 10], [20, 20], [10, 40]],
        [[40, 40], [30, 30], [40, 20], [30, 10]]
    ]
}
MultiPolygon SFA MultiPolygon.svg
{ "type": "MultiPolygon",
    "coordinates": [
        [
            [[30, 20], [45, 40], [10, 40], [30, 20]]
        ],
        [
            [[15, 5], [40, 10], [10, 20], [5, 10], [15, 5]]
        ]
    ]
}
SFA MultiPolygon with hole.svg
{ "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

Individual evidence

  1. March 2007 Archives by thread
  2. Geographic JSON (GeoJSON). In: datatracker.ietf.org. Retrieved August 12, 2016 .
  3. ^ GeoJSON. In: openlayers.org. Retrieved August 12, 2016 .
  4. Documentation - Leaflet - a JavaScript library for interactive maps. In: leafletjs.com. Retrieved August 12, 2016 .
  5. Template-Driven Output - MapServer 7.0.1 documentation. In: mapserver.org. Retrieved August 12, 2016 .
  6. OGR based WFS Output Format - GeoServer 2.10.x User Manual. In: docs.geoserver.org. Retrieved August 12, 2016 .
  7. GeoJSON Serializer | Django documentation | Django. In: docs.djangoproject.com. Retrieved August 12, 2016 .
  8. PointPlot. In: www.ndm.io. Retrieved August 12, 2016 .
  9. ^ GeoJSON. In: www.gdal.org. Retrieved August 12, 2016 .
  10. CARTO Documentation - CARTO Documentation. In: developers.cartodb.com. Retrieved August 12, 2016 .
  11. ST_GeomFromGeoJSON. In: postgis.net. Retrieved August 12, 2016 .
  12. ST_AsGeoJSON. In: postgis.net. Retrieved August 12, 2016 .
  13. mapnik / mapnik. In: GitHub. Retrieved August 12, 2016 .
  14. There's a map for that. June 13, 2013, accessed August 12, 2016 .

Web links