Spatial*
objectsMethods to coerce simple feature objects to Spatial*
objects
as_Spatial(from, cast = TRUE, IDs = paste0("ID", 1:length(from)))
object of class sfc_POINT
, sfc_MULTIPOINT
, sfc_LINESTRING
, sfc_MULTILINESTRING
, sfc_POLYGON
, or sfc_MULTIPOLYGON
.
logical; if TRUE
, st_cast from
before converting, so that e.g. GEOMETRY
objects with a mix of POLYGON
and MULTIPOLYGON
are cast to MULTIPOLYGON
.
character vector with IDs for the Spatial*
geometries
geometry-only object deriving from Spatial
, of the appropriate class