srs_info_from_db: Obtain information about coordinate reference systems in the...

View source: R/RcppExports.R

srs_info_from_dbR Documentation

Obtain information about coordinate reference systems in the PROJ DB

Description

srs_info_from_db() returns a data frame containing descriptive information about spatial coordinate reference systems in the PROJ database. Wrapper of OSRGetCRSInfoListFromDatabase() in the GDAL SRS API.

Usage

srs_info_from_db(auth_name = "")

Arguments

auth_name

Character string containing an authority name used to restrict the search, or empty string ("") for all authorities (the default).

Details

The returned information includes the authority name, object code, object name, object type (e.g., Geographic 2D CRS, Geographic 3D CRS, Projected CRS, etc.), whether the object is deprecated, whether the bounding box values for the area of use are valid, the bounding box values in longitude and latitude degrees, the name of the area of use, the name of the projection method for a projected CRS, and the name of the celestial body of the CRS (e.g., "Earth", populated only if GDAL >= 3.12 and PROJ >= 8.1).

Value

A data frame (will contain 0 rows if no objects are found that match the search criterion).

See Also

srs_query

Examples

epsg <- srs_info_from_db("EPSG")
str(epsg)

iau <- srs_info_from_db("IAU_2015")
str(iau)

gdalraster documentation built on Dec. 18, 2025, 9:06 a.m.