rasterizeCover: FAST RASTERIZE ALL POLYGONS COVERED BY POLYGON

View source: R/spatialTools.R

rasterizeCoverR Documentation

FAST RASTERIZE ALL POLYGONS COVERED BY POLYGON

Description

A faster version of rasterize with the argument getCover that for rasterizing polygon values that are touch a raster cell (rather than only it's center)

Usage

rasterizeCover(rasterToMatch, shp, field, noDataVal = 0)

Arguments

rasterToMatch

is the raster to use to burn polygon values to

shp

is sf of SpatialPolygonsDataFrame object

field

character. The field of shp to extract values from. If NULL, 1s will be assigned to all cells that touch polygons

noDataVal

Numeric, compatible with "Float64". value assigned to no data. Defaults to 0.


CeresBarros/ToolsCB documentation built on Aug. 23, 2024, 4:22 p.m.