crs_to_osgeo

HSTB.kluster.gdal_helpers.crs_to_osgeo(input_crs)

Take in a CRS in several formats and returns an osr SpatialReference for use with GDAL/OGR

Supports pyproj CRS object, crs in Proj4 format, crs in Wkt format, epsg code as integer/string

Parameters

input_crs (Union[CRS, str, int]) – input crs in one of the accepted forms

Returns

osr SpatialReference for the provided CRS

Return type

SpatialReference