Learn R Programming

geometr (version 0.2.5)

getLayer: Get a specific layer of a spatial object.

Description

Get a specific layer of a spatial object.

Usage

# S4 method for ANY
getLayer(x)

# S4 method for geom getLayer(x, layer = NULL)

# S4 method for Spatial getLayer(x, layer = NULL)

# S4 method for sf getLayer(x, layer = NULL)

# S4 method for Raster getLayer(x, layer = NULL)

# S4 method for matrix getLayer(x, layer = NULL)

Arguments

x

the object from which to get the layer.

layer

[character(.) | integerish(.)] the layer(s) to get.

Value

A list of the requested layers.

See Also

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