Coverage for stems/gis/utils.py : 92%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Assorted GIS utilities """
""" Return `osgeo.osr.SpatialReference` of a `rasterio.crs.CRS`
Parameters ---------- crs : rasterio.crs.CRS Rasterio coordinate reference system
Returns ------- osr.SpatialReference CRS as OSR object """
""" Check if multiple CRS are the same
Parameters ---------- crs : rasterio.crs.CRS Multiple CRS to compare
Returns ------- bool True if all of the CRS inputs are the same (according to rasterio)
See Also -------- osr_same_crs """ return False
""" Use OSR to compare for CRS equality
Converts Rasterio ``CRS`` to ``OSRSpatialReference`` and compares using OSR because comparing CRS from WKT with CRS from EPSG/Proj4 can be buggy.
Parameters ---------- *crs : rasterio.crs.CRS Two or more CRS
Returns ------- bool True if all CRS are equivalent """ return False |