Raster to polygons conversion
rasterToPolygons.RdRaster to polygons conversion. Cells with NA are not converted. A function can be used to select a subset of the raster cells (by their values).
Arguments
- x
Raster* object
- fun
function to select a subset of raster values (only allowed if
xhas a single layer)- n
integer. The number of nodes for each polygon. Only 4, 8, and 16 are allowed
- na.rm
If
TRUE, cells withNAvalues in all layers are ignored- digits
number of digits to round the coordinates to
- dissolve
logical. If
TRUE, polygons with the same attribute value will be dissolved into multi-polygon regions