Samiksha Jaiswal (Editor)

GeoJSON

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Filename extensions
  
.json, .geojson

Extended from
  
JSON

Open format?
  
yes

Type of format
  
GIS file format

Standard
  
RFC 7946

GeoJSON

Internet media type
  
application/vnd.geo+json

GeoJSON is an open standard format designed for representing simple geographical features, along with their non-spatial attributes, based on JavaScript Object Notation.

Contents

The features include points (therefore addresses and locations), line strings (therefore streets, highways and boundaries), polygons (countries, provinces, tracts of land), and multi-part collections of these types. GeoJSON features need not represent entities of the physical world only; mobile routing and navigation apps, for example, might describe their service coverage using GeoJSON.

The GeoJSON format differs from other GIS standards in that it was written and is maintained not by a formal standards organization, but by an Internet working group of developers.

A notable offspring of GeoJSON is TopoJSON, an extension of GeoJSON that encodes geospatial topology and that typically provides smaller file sizes.

History

The GeoJSON format working group and discussion were begun in March 2007 and the format specification was finalized in June 2008.

In April 2015 the Internet Engineering Task Force has founded the Geographic JSON working group which released GeoJSON as RFC 7946 in August 2016.

Supported software

GeoJSON is supported by numerous mapping and GIS software packages, including OpenLayers, Leaflet, MapServer, Geoforge software, GeoServer, GeoDjango, PointPlot, GDAL, Safe Software FME, and CartoDB. It is also possible to use GeoJSON with PostGIS and Mapnik, both of which handle the format via the GDAL OGR conversion library. Bing Maps, Yahoo! and Google also support GeoJSON in their API services.

The Google Maps JavaScript API v3 directly supports the integration of GeoJSON data layers as of March 19, 2014. For the Julia language a GeoJSON.jl package is available.

GitHub also supports GeoJSON rendering and Potrace GeoJSON export.

Geojson.io supports GeoJSON rendering and editing in the web browser.

TopoJSON

TopoJSON is an extension of GeoJSON that encodes topology. Rather than representing geometries discretely, geometries in TopoJSON files are stitched together from shared line segments called arcs. Arcs are sequences of points, while line strings and polygons are defined as sequences of arcs. Each arc is defined only once, but can be referenced several times by different shapes, thus reducing redundancy and decreasing the file size. In addition, TopoJSON facilitates applications that use topology, such as topology-preserving shape simplification, automatic map coloring, and cartograms.

A reference implementation of the TopoJSON specification is available as a command-line tool to encode TopoJSON from GeoJSON (or ESRI Shapefiles) and a client side JavaScript library to decode TopoJSON back to GeoJSON again. TopoJSON is also supported by the popular OGR tool as of version 1.11 and PostGIS as of version 2.1.0.

TopoJSON Schema

Given a GIS shape near coordinates latitude 0° and longitude 0°, a simple but valid and complete topojson file containing all metadata, Polygon, LineString, Point elements, arcs and properties is defined as follows:

References

GeoJSON Wikipedia