Skip to contents

[Deprecated]

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.

Usage

rasterize_vri(path, layer, below_900m = TRUE, res = 10)

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. If FALSE, the function will ignore the 'Elevation' column and rasterize all polygons.

res

Resolution in meters of the resultant raster. Default 10 m^2.

Value

Examples

path <- "~/Documents/path/to/VRI.gdb"
layer <- "VRI_Algorithm_Jan11_2023"
vri <- rasterize_vri(path = path, layer = layer)
#> Error in rasterize_vri(path = path, layer = layer): could not find function "rasterize_vri"