projection: Get a coordinate reference system (projection)

Description Usage Arguments Details Value Examples

Description

Get the coordinate reference system (CRS) of a Raster*, sf, or Spatial object.

Usage

1
projection(x, asText = TRUE)

Arguments

x

Raster*, sf, or Spatial object

asText

logical. If TRUE, the projection is returned as text. Otherwise a CRS object is returned

Details

See projection for more details.

Value

character object

Examples

1
2
x <- read_sf(system.file("shape/nc.shp", package="sf"))
projection(x)

mdsumner/sfraster documentation built on May 12, 2019, 1:05 p.m.