wkt_unnest | R Documentation |
Flatten nested geometry structures
wkt_unnest(wkt, keep_empty = FALSE, keep_multi = TRUE, max_depth = 1) wkb_unnest(wkb, keep_empty = FALSE, keep_multi = TRUE, max_depth = 1)
wkt |
A character vector containing well-known text. |
keep_empty |
If |
keep_multi |
If |
max_depth |
The maximum recursive GEOMETRYCOLLECTION depth to unnest. |
wkb |
A |
An unclassed vector with attribute lengths
, which is an integer vector
with the same length as the input denoting the length to which each
feature was expanded.
wkt_unnest("GEOMETRYCOLLECTION (POINT (1 2), POINT (3 4))") wkt_unnest("GEOMETRYCOLLECTION EMPTY") wkt_unnest("GEOMETRYCOLLECTION EMPTY", keep_empty = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.