odc.geo.geom.Geometry.geojson
- Geometry.geojson(properties=None, simplify='auto', resolution=None, wrapdateline=False, **props)[source]
Render geometry to GeoJSON.
Convert geometry to
ESPG:4326and wrap it in GeoJSON Feature with supplied properties.- Parameters:
properties (
Optional[Dict[str,Any]]) – Properties to include in the GeoJSON output.simplify (
Union[float,Literal['auto']]) – Tolerance in degrees for simplifying geometry after changing to lon/lat. Larger number will result in a smaller (fewer points) and hence faster to display, but less precise geometry. Default is"auto", meaning no simplification for geometries with only few points and0.05of a degree for geometries with many. To disable set to0.resolution (
Optional[float]) – When supplied, extra points will be added to the original geometry such that no segment is longer thanresolutionunits. Passed on toto_crs().
- Return type:
- Returns:
GeoJSON Feature dictionary