Get the extent (bounding box) of a spatial object.
Get the extent (bounding box) of a spatial object.
getExtent(x, ...) ## S4 method for signature 'ANY' getExtent(x) ## S4 method for signature 'geom' getExtent(x) ## S4 method for signature 'Spatial' getExtent(x) ## S4 method for signature 'sf' getExtent(x) ## S4 method for signature 'Raster' getExtent(x) ## S4 method for signature 'matrix' getExtent(x)
x |
the object from which to derive the extent. |
... |
other arguments. |
A tibble of the lower left and upper right corner coordinates of the
extent of x
. This table two columns (x and y) and two rows (minimum
and maximum).
getExtent(gtGeoms$polygon) getExtent(x = gtSP$SpatialPolygons) getExtent(x = gtSF$multilinestring) getExtent(x = gtRasters$categorical) getExtent(x = matrix(0, 3, 5))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.