Description Usage Arguments Details Value
View source: R/raster_crop_bbox.R
Crop Raster to Simple Features Bounding Box
1 | raster_crop_bbox(a_raster, sf_bbox)
|
a_raster |
a Raster from the 'raster' package |
sf_bbox |
a object of class 'bbox' created by sf::st_bbox() |
The bounding box is converted to a raster::extent which is used to crop the raster. The bounding box need not have the same CRS as the raster, it is transformed to the raster's CRS automatically.
a_raster cropped to the extent of sf_bbox
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.