Learn R Programming

geometr (version 0.2.5)

getCRS: Get the coordinate reference system of a spatial object.

Description

Get the coordinate reference system of a spatial object.

Usage

# S4 method for ANY
getCRS(x)

# S4 method for geom getCRS(x)

# S4 method for Spatial getCRS(x)

# S4 method for sf getCRS(x)

# S4 method for ppp getCRS(x)

# S4 method for Raster getCRS(x)

Arguments

x

the object from which to extract the coordinate reference system.

Value

The coordinate reference system of x given as proj4string.

See Also

Other getters: getExtent(), getFeatures(), getGroups(), getHistory(), getLayer(), getName(), getPoints(), getRes(), getType(), getWindow()