raster_by_poly {bcmaps} | R Documentation |
Overlay a SpatialPolygonsDataFrame or sf polygons layer on a raster layer and clip the raster to each polygon. Optionally done in parallel
Description
Overlay a SpatialPolygonsDataFrame or sf polygons layer on a raster layer and clip the raster to each polygon. Optionally done in parallel
Usage
raster_by_poly(
raster_layer,
poly,
poly_field,
summarize = FALSE,
parallel = FALSE
)
Arguments
raster_layer |
the raster layer |
poly |
a |
poly_field |
the field on which to split the |
summarize |
Should the function summarise the raster values in each
polygon to a vector? Default |
parallel |
process in parallel? Default |
Value
a list of RasterLayers
if summarize = FALSE
otherwise a list of
vectors.
[Package bcmaps version 2.2.0 Index]