vector_polygons_to_raster {whitebox} | R Documentation |
Converts a vector containing polygons into a raster.
vector_polygons_to_raster(input, output, field = "FID", nodata = TRUE, cell_size = NULL, base = NULL, verbose_mode = FALSE)
input |
Input vector polygons file. |
output |
Output raster file. |
field |
Input field name in attribute table. |
nodata |
Background value to set to NoData. Without this flag, it will be set to 0.0. |
cell_size |
Optionally specified cell size of output raster. Not used when base raster is specified. |
base |
Optionally specified input base raster file. Not used when a cell size is specified. |
verbose_mode |
Sets verbose mode. If verbose mode is False, tools will not print output messages. |
Returns the tool text outputs.