ext2spy {Orcs} | R Documentation |
Convert a spatial extent to polygons.
ext2spy(x, crs = "EPSG:4326", as_sf = TRUE)
x |
A |
crs |
Coordinate reference system set via |
as_sf |
|
Depending on 'as_sf', either a c(sf, data.frame)
or SpatVector
object.
Florian Detsch
ext = terra::ext(c(25, 70, -5, 30))
ext2spy(ext) # 'sf' (default)
ext2spy(ext, as_sf = FALSE) # 'Spatial*'