wk_flatten | R Documentation |
Extract simple geometries
wk_flatten(handleable, ..., max_depth = 1)
wk_flatten_filter(handler, max_depth = 1L, add_details = FALSE)
handleable |
A geometry vector (e.g., |
... |
Passed to the |
max_depth |
The maximum (outer) depth to remove. |
handler |
A wk_handler object. |
add_details |
Use |
handleable
transformed such that collections have been
expanded and only simple geometries (point, linestring, polygon)
remain.
wk_flatten(wkt("MULTIPOINT (1 1, 2 2, 3 3)"))
wk_flatten(
wkt("GEOMETRYCOLLECTION (GEOMETRYCOLLECTION (GEOMETRYCOLLECTION (POINT (0 1))))"),
max_depth = 2
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.