Description Usage Arguments Value Author(s)
Rasterize a sf object to match the given raster
1 2 3 4 5 6 | vector2raster(
vector_sf,
raster_r,
vector_field,
raster_path = tempfile(pattern = "vector2raster_", fileext = ".tif")
)
|
vector_sf |
A sf object. |
raster_r |
A raster object. This raster is the reference for coordinate sytem, spatial resolution, and dimensions. |
vector_field |
A length-one character. The name of an integer column in vector_sf. |
raster_path |
A length-one character. An optional file path to store the resulting raster. |
A length-one character. A path to a raster.
Alber Sanchez, alber.ipia@inpe.br
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.