get_spCRS: Get coordinate reference system representation as sp::CRS...

View source: R/code_to_getCoordinateReferenceSystemInfo.R

get_spCRSR Documentation

Get coordinate reference system representation as sp::CRS object

Description

Function to get coordinate reference system representation as a sp::CRS object

Usage

get_spCRS(x)

Arguments

x
  • see details

Details

x can be NULL, NA, numeric, character, inherit from sf classes crs, sf, sfc, or sfg, or inherit from sp classes CRS or Spatial.

If x is numeric, it should represent an EPSG code.

If x is character, it should be a valid PROJ4 string or one of the following: "longlat","latlong","WGS84","NAD83","NAD27", "AlaskaAlbers", "utmXX" or "utmXXs". In the latter two cases, XX should be a valid utm zone.

Based on deprecated function tmaptools::get_proj4 by M. Tennekes (see https://github.com/mtennekes/oldtmaptools/blob/master/R/get_proj4_code.R).

Value

a sp::CRS object or NULL if x is NULL


wStockhausen/wtsGIS documentation built on Aug. 23, 2023, 2:31 a.m.