odc.geo.crs.CRS
- class odc.geo.crs.CRS(crs_spec)[source]
Wrapper around
pyproj.crs.CRS
for backwards compatibility.- __init__(crs_spec)[source]
Construct CRS object from something.
- Parameters:
crs_spec (
Any
) – String representation of a CRS, often an EPSG code like'EPSG:4326'
. Can also be any object that implements.to_epsg()
or.to_wkt()
.- Raises:
Methods
__init__
(crs_spec)Construct CRS object from something.
to_epsg
()EPSG Code of the CRS or
None
.to_wkt
([pretty, version])Generate WKT representation of this CRS.
transformer_to_crs
(other[, always_xy])Build coordinate transformer to other projection.
utm
(x[, y, datum_name])Construct appropriate UTM CRS for a given point.
Attributes
DEFAULT_WKT_VERSION
Default version for WKT: WKT2_2019
Get
(authority_name, code)
tuple.crs_str
DEPRECATED
List of dimension names of the CRS.
epsg
EPSG Code of the CRS or
None
.geographic
True if CRS is geographic.
inverse_flattening
Inverse flattening of the ellipsoid.
proj
Access
pyproj.crs.CRS
object that this wraps.projected
True if CRS is projected.
semi_major_axis
Semi-major axis of the ellipsoid.
semi_minor_axis
Semi-minor axis of the ellipsoid.
List of dimension units of the CRS.
valid_region
Return valid region of this CRS.
wkt
WKT representation of this CRS.