odc.geo.crs.CRS
- class odc.geo.crs.CRS(crs_spec)[source]
Wrapper around
pyproj.crs.CRSfor 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(other[, always_xy])Construct
pyproj.Transformer.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_VERSIONDefault version for WKT: WKT2_2019
Get
(authority_name, code)tuple.crs_strDEPRECATED
List of dimension names of the CRS.
epsgEPSG Code of the CRS or
None.geographicTrue if CRS is geographic.
inverse_flatteningInverse flattening of the ellipsoid.
projAccess
pyproj.crs.CRSobject that this wraps.projectedTrue if CRS is projected.
semi_major_axisSemi-major axis of the ellipsoid.
semi_minor_axisSemi-minor axis of the ellipsoid.
List of dimension units of the CRS.
valid_regionReturn valid region of this CRS.
wktWKT representation of this CRS.