Description Usage Arguments Value Author(s) Examples
Bounding boxes of raster (class Raster*
) objects will be converted either
to SpatialPointsDataFrame or SpatialPointsDataFrame.
This function extract the corners including the bounding box of the input raster or extension and writes either four spatial points or a rectangle as polygon.
1 2 3 4 5 6 7 8 9 10 11 12 13 | bbox_sp(raster, ...)
## S4 method for signature 'Extent'
bbox_sp(raster, proj4 = "", geom = "point", ...)
## S4 method for signature 'RasterLayer'
bbox_sp(raster, geom = "point", ...)
## S4 method for signature 'RasterStack'
bbox_sp(raster, geom = "point", ...)
## S4 method for signature 'RasterBrick'
bbox_sp(raster, geom = "point", ...)
|
raster |
An object of class |
... |
Further arguments passed among methods (not yet used). |
proj4 |
Character vector indicating the |
geom |
Character value indicating the geometry of output (either point or polygon). |
Either a SpatialPointsDataFrame or a SpatialPolygonsDataFrame object.
Lukas Trübenbach and Miguel Alvarez (kamapu78@gmail.com).
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.