Get a specific layer of a spatial object.
# 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)
the object from which to get the layer.
[character(.)
| integerish(.)
] the layer(s) to get.
A list of the requested layers.
Other getters:
getCRS()
,
getExtent()
,
getFeatures()
,
getGroups()
,
getHistory()
,
getName()
,
getPoints()
,
getRes()
,
getType()
,
getWindow()