raster.get_epsg_string()

Return an EPSG:<code> identifier.

Usage

Source

raster.get_epsg_string(projparams)

Parameters

projparams: Any
Value accepted by pyproj.CRS.

Returns

str
Identifier such as "EPSG:4326".

Raises

ValueError
If the CRS is invalid or has no EPSG code.