Projection Format Conversion Tools¶
The stems.gis.projections
module contains tools to help convert
between representations of projections, including between the Open Geospatial
Consortium (OGC) and the Climate Forecast (CF) convention systems.
There are also functions that help retrieve useful information from a Rasterio
rasterio.crs.CRS
, including the “long name” (e.g.,
"WGS 84 / Pseudo-Mercator"
)
|
Return name of a CRS / ellipsoid pair |
Climate Forecast (CF) Parameters¶
The following functions are useful for retrieving CF
parameters from rasterio.crs.CRS
representations of coordinate
reference systems:
|
Return CF name of a CRS projection |
|
Return CF-compliant CRS info to prevent “unknown” CRS/Ellipse/Geoid |
|
Return projection parameters for a CRS |
|
Return ellipsoid parameters for a CRS |
|
Returns appropriate names for coordinates given CRS |
These functions rely on a few data variables that contain the translations between the OGC and CF systems:
|
Built-in immutable sequence. |
Mapping between OGC WKT <-> CF projection names |
|
mapping from CF ellipsoid parameter to SpatialReference method calls |
|
Mapping between CF <-> OGC WKT projection parameters for projections |
EPSG Codes¶
You can also try to retrieve the European Petroleum Survey Group (EPSG) code
from a rasterio.crs.CRS
:
|
Return EPSG code for a CRS |