# S4 method for SpatRaster
as.polygons(x, trunc=TRUE, dissolve=TRUE, values=TRUE, na.rm=TRUE, extent=FALSE)# S4 method for SpatRaster
as.lines(x)
# S4 method for SpatRaster
as.points(x, values=TRUE, na.rm=TRUE)
# S4 method for SpatVector
as.polygons(x)
# S4 method for SpatVector
as.lines(x)
# S4 method for SpatVector
as.points(x, multi=FALSE, skiplast=TRUE)
# S4 method for SpatExtent
as.polygons(x, crs="")
# S4 method for SpatExtent
as.lines(x, crs="")
# S4 method for SpatExtent
as.points(x, crs="")