rsaga.grid.to.points {RSAGA}R Documentation

Convert SAGA grid file to point shapefile

Description

Convert SAGA grid file to point shapefile - either completely or only a random sample of grid cells.

Usage

rsaga.grid.to.points(in.grids, out.shapefile, 
    in.clip.polygons, exclude.nodata = TRUE, ...)
rsaga.grid.to.points.randomly(in.grid, out.shapefile, freq, ...)

Arguments

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.

Note

These functions use modules 3 and 4 in SAGA library shapes_grid.

Author(s)

Alexander Brenning (R interface), Olaf Conrad (SAGA modules)

See Also

rsaga.add.grid.values.to.points

Examples

## Not run: 
rsaga.grid.to.points.randomly("dem", "dempoints", freq = 20)
## End(Not run)

[Package RSAGA version 0.9-5 Index]