SfcArray-class | R Documentation |
sf
'-derived class dataArray class for easier navigation of vector spatial datasets
stack |
A |
index |
A |
dim |
A |
The class implements structures to organize entire 'sfc
' and 'sf
' objects that share coordinate reference systems. The 'SfcArray' class is derived from 'XArray
' and represents arrays of geometry sets. The 'SfArray
' class is derived from 'SfArray
', that allows the wrapping of 'sf
' objects with attributes. Subsetting rules were defined using the proxy object in the @index
slot. See examples for implementations.
The classes have two slots:
@stack
: A list
object with multiple 'sf
' class layers, the actual data.
@index
: A proxy object that represents the organization of the layers.
An 'SfcArray
' or 'SfArray
'-class object.
# example data
library(sf)
data(paleocoastlines)
st <-paleocoastlines@stack
ind <- 1:nlayers(st)
dim(ind) <- c(3,2)
dimnames(ind) <- list(age=c(0, 10, 20), c("margin", "coastlines"))
sa<- SfcArray(stack=st, index=ind)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.