ext2spy | 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
terra::ext()
.
ext = terra::ext(c(25, 70, -5, 30)) ext2spy(ext) # 'sf' (default) ext2spy(ext, as_sf = FALSE) # 'Spatial*'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.