st_cast_ext | R Documentation |
Wrapper for sf::st_cast()
that currently supports casting MULTIPOLYGON to
POLYGON or MULTIPOLYGON or POLYGON to POINT or, if simplify = FALSE, can cast
MULTIPOINT to LINESTRING. This is not very different than the basic
functionality of st_cast but further development may improve the utility of
this function.
st_cast_ext(x, to = "POINT", simplify = TRUE, ...)
x |
A |
to |
character; target type, if missing, simplification is tried; when |
simplify |
If TRUE, simplify geometry type; defaults to TRUE. |
... |
ignored |
sf::st_cast()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.