rsaga.grid.to.points {RSAGA} | R Documentation |
Convert SAGA grid file to point shapefile - either completely or only a random sample of grid cells.
rsaga.grid.to.points(in.grids, out.shapefile, in.clip.polygons, exclude.nodata = TRUE, ...) rsaga.grid.to.points.randomly(in.grid, out.shapefile, freq, ...)
in.grids |
Input: names of (possibly several) SAGA grid files to be converted into a point shapefile. |
in.grid |
Input: SAGA grid file from which to sample. |
out.shapefile |
Output: point shapefile
(default extension: .shp ).
Existing files will be overwritten! |
in.clip.polygons |
optional polygon shapefile to be used for clipping/masking an area |
exclude.nodata |
logical (default: TRUE ):
skip 'nodata' grid cells? |
freq |
integer >=1: sampling frequency in percent |
... |
Optional arguments to be passed to rsaga.geoprocessor ,
including the env RSAGA geoprocessing environment. |
These functions use modules 3 and 4 in SAGA library shapes_grid
.
Alexander Brenning (R interface), Olaf Conrad (SAGA modules)
rsaga.add.grid.values.to.points
## Not run: rsaga.grid.to.points.randomly("dem", "dempoints", freq = 20) ## End(Not run)