Skip to contents

srs_get_name() accepts a spatial reference system definition in various text formats and returns the name. See srs_to_wkt() for a description of the possible input formats. Wrapper of OSRGetName() in the GDAL Spatial Reference System API.

Usage

srs_get_name(srs)

Arguments

srs

Character string containing an SRS definition in various formats (e.g., WKT, PROJ.4 string, well known name such as NAD27, NAD83, WGS84, etc).

Value

Character string containing the name, or empty string.

Examples

srs_get_name("EPSG:5070")
#> [1] "NAD83 / Conus Albers"