Learn R Programming

geometr (version 0.2.10)

getLayers: Get a specific layer of a spatial object.

Description

Get a specific layer of a spatial object.

Usage

getLayers(x, ...)

# S4 method for ANY getLayers(x)

# S4 method for geom getLayers(x)

# S4 method for Spatial getLayers(x)

# S4 method for sf getLayers(x)

# S4 method for Raster getLayers(x)

# S4 method for 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

Other getters: getCRS(), getCols(), getExtent(), getFeatures(), getGroups(), getHistory(), getNames(), getPoints(), getRes(), getRows(), getType(), getWindow()

Examples

Run this code
# NOT RUN {
getLayers(x = gtRasters)
# }

Run the code above in your browser using DataLab