vector2raster: Rasterize vectors

Description Usage Arguments Value Author(s)

Description

Rasterize a sf object to match the given raster

Usage

1
2
3
4
5
6
vector2raster(
  vector_sf,
  raster_r,
  vector_field,
  raster_path = tempfile(pattern = "vector2raster_", fileext = ".tif")
)

Arguments

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.

Value

A length-one character. A path to a raster.

Author(s)

Alber Sanchez, alber.ipia@inpe.br


albhasan/sits.prodes documentation built on Sept. 3, 2020, 2:03 p.m.