
Cast geometry of a simple feature object or simple feature collection to another type
Source:R/st_cast_ext.R
st_cast_ext.RdWrapper 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.
Arguments
- x
A
sforsfcobject to cast to another type.- to
character; target type, if missing, simplification is tried; when
xis of typesfg(i.e., a single geometry) thentoneeds to be specified.- simplify
If
TRUE, simplify geometry type; defaults toTRUE.- ...
Arguments passed on to
sf::st_cast