View source: R/extendr-wrappers.R
expand_geoms | R Documentation |
Expands geometries into a list of vectors of their components.
expand_geoms(x)
x |
an object of class |
rs_MULTIPOINT
expands into a vector of points
rs_LINESTRING
expands into a vector points
rs_MULTILINESTRING
expands into a vector of linestrings
rs_POLYGON
expands into a vector of linestrings
rs_MULTIPOLYGON
expands into a vector of polygons
If you wish to have a single vector returned, pass the results
into flatten_geoms()
.
A list of rsgeo
vectors containing each original geometry's
components as a new vector.
mpnts <- geom_multipoint(runif(10), runif(10), rep.int(1:5, 2))
expand_geoms(mpnts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.