odc.geo.geom.Geometry.to_crs
- Geometry.to_crs(crs, resolution=None, wrapdateline=False)[source]
Convert geometry to a different Coordinate Reference System.
- Parameters
crs (
Union
[str
,CRS
,CRS
,Dict
[str
,Any
]]) – CRS to convert toresolution (
Optional
[float
]) – Subdivide the geometry such it has no segment longer then the given distance. Defaults to 1 degree for geographic and 100km for projected. To disable completely use Infinityfloat('+inf')
wrapdateline (
bool
) – Attempt to gracefully handle geometry that intersects the dateline when converting to geographic projections. Currently only works in few specific cases (source CRS is smooth over the dateline).
- Return type