pyproj_crs_to_osgeo

HSTB.kluster.gdal_helpers.pyproj_crs_to_osgeo(proj_crs)

Convert from the pyproj CRS object to osgeo SpatialReference

See https://pyproj4.github.io/pyproj/stable/crs_compatibility.html

Parameters

proj_crs (Union[CRS, int]) – pyproj CRS or an integer epsg code

Returns

converted SpatialReference

Return type

SpatialReference