odc.geo.geom.Geometry.geojson
- Geometry.geojson(properties=None, simplify=0.05, resolution=None, wrapdateline=False, **props)[source]
Render geometry to GeoJSON.
Convert geometry to
ESPG:4326
and wrap it in GeoJSON Feature with supplied properties.- Parameters:
properties (
Optional
[Dict
[str
,Any
]]) – Properties to include in the GeoJSON output.simplify (
float
) – 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 is0.05
of a degree. To disable set to0
.resolution (
Optional
[float
]) – When supplied, extra points will be added to the original geometry such that no segment is longer thanresolution
units. Passed on toto_crs()
.
- Return type:
- Returns:
GeoJSON Feature dictionary