extent | R Documentation |
This is a wrapper around terra::ext
, sf::st_bbox
, and raster::extent
.
## S4 method for signature 'list'
extent(x, ...)
## S4 method for signature 'sf'
extent(x, ...)
## S4 method for signature 'SpatRaster'
extent(x, ...)
## S4 method for signature 'SpatVector'
extent(x, ...)
## S4 method for signature 'SpatExtent'
extent(x, ...)
## S4 method for signature 'Spatial'
extent(x, ...)
## S4 method for signature 'Raster'
extent(x, ...)
x |
The spatial object from which to extract the extent. |
... |
Not used. |
Returns a list of length 4 with elements xmin
, xmax
, ymin
, and ymax
,
in that order.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.