GeoJSON is a geospatial data format that has become quite popular in the last few years. This blog post discusses what GeoJSON is, how you can create it and some Esri tools that enable using the format.
What is GeoJSON?
The GeoJSON format was designed for the representation of simple geographical features, along with their non-spatial attributes and now supports a number of geometry types such as points, line strings, polygons and multi-part collections of these types. GeoJSON was created and maintained by an internet working group of developers. Since the first GeoJSON format specification in 2008, the adoption of GeoJSON in spatial databases, web APIs, and open data platforms has grown significantly, resulting in a need for standardization. This led to the creation of a Geographic JSON working group which released a RFC document on GeoJSON in August 2016. GeoJSON uses either .json or .geojson as filename extension.
Create your own GeoJSON
A great resource for creating your own GeoJSON data is http://geojson.io, which enables you to draw features on a map, and optionally, add non-spatial attributes to these features in a code editor and save the results in a variety of data formats, such as GeoJSON.
GeoJSON is supported differently by numerous mapping APIs, GIS software packages and companies such as Mapbox, Carto and Safe Software. The following covers Esri support for the format.
Esri support for GeoJSON
ArcMap and ArcGIS Pro do not offer native support for GeoJSON, but the Data Interoperability extension offers read and write support for the format. The system toolbox “Conversion” in ArcMap offers “a Feature to JSON” and “JSON to Features” tool (in Pro, refer to “JSON toolset). The same can be attained with the “AsShape” function in ArcPy. There’s also a Python package called “geojson” for encoding and decoding GeoJSON formatted data and offers classes for all GeoJSON Objects.