snapToStream: Snap points to a stream network raster

View source: R/stream.r

snapToStreamR Documentation

Snap points to a stream network raster

Description

Snap points to a stream network raster

Usage

snapToStream(x, stream, buff)

Arguments

x

SpatialPoints or similar object

stream

Raster or character; a stream network raster (e.g., from [extractStream()]). If specified as a character, a layer with that name from the existing [GrassSession()] given by gs will be used.

buff

The distance (in meters if x is in geographic coordinates, map units otherwise) to restrict the search from points in x

Details

If buff is too small, a nearby stream may not be found, in which case the original coordinates are returned

Value

A SpatialPointsDataFrame, with the attributes from 'x' and new coordinates


mtalluto/WatershedTools documentation built on May 21, 2022, 7:49 p.m.