raster.get_epsg_string()

Extract CRS identifier string from CRS object.

Usage

Source

raster.get_epsg_string(projparams)

Parameters

projparams: Any
An object that can initialize a pyproj.CRS class instance, e.g., a EPSG code or any object that implements to_wkt().

Returns

str
‘EPSG:’ + EPSG code identifier (e.g., ‘EPSG:4326’)

Raises

ValueError
If EPSG code cannot be extracted.