snapPointsToLines: Updated version of maptools snapPointsToLines

Description Usage Arguments Details

View source: R/SG.R

Description

Updated version of maptools snapPointsToLines

Usage

1
snapPointsToLines(points, lines, maxDist = NA, withAttrs = TRUE)

Arguments

points

A SpatialPointsDataFrame in a planar (i.e. UTM) projection

lines

A SpatialLinesDataFrame in a planar (i.e. UTM) projection

maxDist

Numeric value for establishing a maximum distance to avoid snapping points that are farther apart; its default value is NA.

withAttrs

Boolean value for preserving (TRUE) or getting rid (FALSE) of the original point attributes. Default: TRUE. This parameter is optional.

Details

see snapPointsToLines function from maptools. Updated version from http://rstudio-pubs-static.s3.amazonaws.com/12524_7de6eb887f2945389c5d12869388be14.html


trevorjwilli/streamgradientR documentation built on Dec. 31, 2020, 8:46 a.m.