raster_crop_bbox: raster_crop_bbox

Description Usage Arguments Details Value

View source: R/raster_crop_bbox.R

Description

Crop Raster to Simple Features Bounding Box

Usage

1
raster_crop_bbox(a_raster, sf_bbox)

Arguments

a_raster

a Raster from the 'raster' package

sf_bbox

a object of class 'bbox' created by sf::st_bbox()

Details

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.

Value

a_raster cropped to the extent of sf_bbox


MilesMcBain/r2vr.gis documentation built on May 24, 2019, 7:52 a.m.