View source: R/raster_by_poly.R
raster_by_poly | R Documentation |
Overlay a SpatialPolygonsDataFrame or sf polygons layer on a raster layer and clip the raster to each polygon. Optionally done in parallel
raster_by_poly(
raster_layer,
poly,
poly_field,
summarize = FALSE,
parallel = FALSE
)
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 |
a list of RasterLayers
if summarize = FALSE
otherwise a list of
vectors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.