Description Usage Arguments Details Value See Also Examples
Transform a spatial object to class geom
1 2 3 4 5 6 7 8 9 10 |
input |
the object to transform to class |
... |
additional arguments. |
group |
[ |
stack |
[ |
as_hex |
[ |
When transforming a simple feature to a geom, all MULTI* features
are organised on a per feature basis, where the attribute table of features
in the geom contains those variables that are valid for each feature, while
the attribute table of groups contains those variables, that are unique
only at the level of groups of features (i.e., at the level of MULTI*
simple features). Those variables that are valid at the level of groups
would be duplicated in the attribute table of features. When a MULTI*
feature is transformed to a geom, the default behaviour is to copy the
simple feature as closely as possible. However, to reduce the object size
(and improve its' organisation), it is possible to assign the attributes of
groups into the attribute table of groups of the geom by setting
group = TRUE
.
When transforming a Raster* (or possibly other gridded classes) with
several layers to a geom, the layers are by default organised into a list
with a layer per list item. However, when several layers contain
fundamentally the same data (i.e., values that are associated to the same
groups), layers could be stacked stack = TRUE
, because they share
the same group attribute table.
an object of class geom
Other spatial classes:
gc_raster()
,
gc_sf()
,
gc_sp()
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.