Create a GVector of contour lines from a GRaster.
Arguments
- x
A
GRaster.- nlevels
Numeric: A positive integer or missing (default). Number of levels at which to calculate contours. Levels will be calculated in equal-sized steps from the smallest to the largest value of
x. Eithernlevelsorlevelsmust be specified.- levels
Numeric vector: A numeric vector of values at which to calculate contour lines. Either
nlevelsorlevelsmust be specified.
See also
terra::as.contour(), GRASS manual page for tool r.contour (see grassHelp("r.contour"))
