Get a specific layer of a spatial object.
Get a specific layer of a spatial object.
getLayers(x, ...) ## S4 method for signature 'ANY' getLayers(x) ## S4 method for signature 'geom' getLayers(x) ## S4 method for signature 'Spatial' getLayers(x) ## S4 method for signature 'sf' getLayers(x) ## S4 method for signature 'Raster' getLayers(x) ## S4 method for signature 'matrix' getLayers(x)
x |
the object from which to get the layer. |
... |
other arguments. |
A list of the layers of x
. Each list-item hast the result of
getNames(x) as name.
getLayers(x = gtRasters)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.