odc.geo.geobox.GeoBox.to_crs
- GeoBox.to_crs(crs, *, resolution='auto', tight=False)[source]
Compute GeoBox covering the same region in a different projection.
- Parameters
crs (
Union
[str
,CRS
,CRS
,Dict
[str
,Any
]]) – Desired CRS of the outputresolution (
Literal
[‘auto’, ‘fit’, ‘same’]) –“same” use exactly the same resolution as src
”fit” use center pixel to determine scale change between the two
- ”auto” is to use the same resolution on the output if CRS units are the samebetween the source and destination and otherwise use “fit”
tight (
bool
) – By default output pixel grid is adjusted to align pixel edges to X/Y axis, supplingtight=True
produces unaligned geobox on the output.
- Return type
- Returns
Similar resolution, axis aligned geobox that fully encloses this one but in a different projection.