itacart.interop.cells_to_geojson
- itacart.interop.cells_to_geojson(index, properties=None, include_metadata=True)[source]
Export a compositional index as a GeoJSON FeatureCollection.
One cell becomes one Feature, always, and a Feature carries a Polygon or a MultiPolygon rather than being split into two Features. The index goes into the Feature
idmember, which RFC 7946 section 3.2 reserves for an identifier already in common use, and is repeated inpropertieswhen metadata is asked for, because some consumers dropidon import. Coordinates are WGS84 decimal degrees and nothing else: section 4 fixes the coordinate reference system and records that alternatives were removed from the specification for interoperability reasons.- Parameters:
- Return type:
- Returns:
A FeatureCollection dictionary.
- Raises:
NonExistentCellError – If a named cell does not exist.