This function is to be used on very large polygons that would not generally run well when harvesting the information contained in the source high-resolution raster. The source polygon is split into a user-defined number of equal parts and then each of those parts are used to extract the land classes from the source raster in parallel.

get_raster_val_classes_byslice(ply, rast, n_parts, n_cores)

Arguments

ply

An sf polygon object

rast

A raster object

n_parts

integer. The number of equal area parts to split the polygon into for processing.

Value

new polygon slice that is next in sequence

Author

Chris R. Vernon (chris.vernon@pnnl.gov)