rasterizeCover | R Documentation |
A faster version of rasterize
with the argument getCover
that
for rasterizing polygon values that are touch a raster cell (rather than only it's center)
rasterizeCover(rasterToMatch, shp, field, noDataVal = 0)
rasterToMatch |
is the raster to use to burn polygon values to |
shp |
is sf of |
field |
character. The field of shp to extract values from. If NULL, 1s will be assigned to all cells that touch polygons |
noDataVal |
Numeric, compatible with "Float64". value assigned to no data. Defaults to 0. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.