Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getLayers

Get a specific layer of a spatial object.


Description

Get a specific layer of a spatial object.

Usage

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)

Arguments

x

the object from which to get the layer.

...

other arguments.

Value

A list of the layers of x. Each list-item hast the result of getNames(x) as name.

See Also

Examples

getLayers(x = gtRasters)

geometr

Generate and Modify Interoperable Geometric Shapes

v0.2.10
GPL-3
Authors
Steffen Ehrmann [aut, cre] (<https://orcid.org/0000-0002-2958-0796>), Dan Sunday [cph] (fast point-in-polygon algorithm.)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.