Extract simple geometries
wk_flatten(handleable, ..., max_depth = 1)
wk_flatten_filter(handler, max_depth = 1L, add_details = FALSE)A geometry vector (e.g., wkb(), wkt(), xy(),
rct(), or sf::st_sfc()) for which wk_handle() is defined.
Passed to the wk_handle() method.
The maximum (outer) depth to remove.
A wk_handler object.
Use TRUE to add a "wk_details" attribute, which
contains columns feature_id, part_id, and ring_id.
handleable transformed such that collections have been
expanded and only simple geometries (point, linestring, polygon)
remain.