rasterize_vri()
will quickly rasterize a given VRI (multi)polygon using fasterize::fasterize()
under the hood at a default resolution of 10x10 m per pixel. By default, the function
filters out any polygons occurring >900m elevation as reported in the VRI 'Elevation' column.
Arguments
- path
Path to either .gdb directory, .shp file, or .gpkg containing the VRI polygons.
- layer
If path is a Geodatabase or Geopackage, layer name of the VRI polygons.
- below_900m
Logical (T/F). Should the function only rasterize polygons below 900m? Default
TRUE
. IfFALSE
, the function will ignore the 'Elevation' column and rasterize all polygons.- res
Resolution in meters of the resultant raster. Default 10 m^2.