EPSG2CRS: Get a valid CRS object from an EPSG code.

View source: R/EPSG2CRS.R

EPSG2CRSR Documentation

Get a valid CRS object from an EPSG code.

Description

Convert an EPSG code to proj4string or WKT (Well-Known Text)

Usage

EPSG2CRS(x, wkt = FALSE)

Arguments

x

vector of EPSG codes. See http://www.epsg-registry.org/ or http://spatialreference.org/.

wkt

logical, if true returns sf WKT CRS object rather than proj4string

Value

A vector of CRS objects or list of WKT objects


johngodlee/JLGMisc documentation built on June 29, 2024, 9:15 p.m.