Creates a contour lines shapefile from a grid file in SAGA grid format.
rsaga.contour(in.grid, out.shapefile, zstep, zmin, zmax, vertex = "xy",
env = rsaga.env(), ...)
The type of object returned depends on the intern
argument passed to the rsaga.geoprocessor()
. For intern=FALSE
it is a numerical error code (0: success), or otherwise (the default) a character vector with the module's console output.
input: digital elevation model (DEM) as SAGA grid file (default file extension: .sgrd
)
output: contour line shapefile. Existing files will be overwritten!
lower limit, upper limit, and equidistance of contour lines
optional parameter: vertex type for resulting contours. Default "xy"
(or 0). Only available with SAGA GIS 2.1.3+.
0 "xy"
1 "xyz"
A SAGA geoprocessing environment, see rsaga.env()
arguments to be passed to rsaga.geoprocessor()
Alexander Brenning (R interface), Olaf Conrad (SAGA module)
rsaga.geoprocessor()