Skip to content

Instantly share code, notes, and snippets.

@om-henners
om-henners / geojson_handler.py
Created November 12, 2012 23:59
Replacement for arcpy.AsShape function as it doesn't work...
'''
Helper class to read and write geojson objects in ArcGIS as a replacement for
the arcpy.asShape(geojson) function. Requires ArcGIS installation...
Creation includes creating a geojson object from an ArcGIS feature class,
feature or geometry.
Reading is more complex. This module includes support for Feature Collections,
Features and Geometry. All geometry types are supported except for
GeometryCollection which is unsupported by ArcGIS. Feature collections must have