snapToStream | R Documentation |
Snap points to a stream network raster
snapToStream(x, stream, buff)
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 |
If buff is too small, a nearby stream may not be found, in which case the original coordinates are returned
A SpatialPointsDataFrame, with the attributes from 'x' and new coordinates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.