Learn R Programming

spNetwork (version 0.1.1)

snapPointsToLines2: Snap points to lines

Description

Snap points to their nearest lines (edited from maptools)

Usage

snapPointsToLines2(points, lines, idField = NA)

Arguments

points

A SpatialPointsDataFrame

lines

A SpatialLinesDataFrame

idField

The name of the column to use as index for the lines

Value

A SpatialPointsDataFrame with the projected geometries

Examples

Run this code
# NOT RUN {
#This is an internal function, no example provided
# }

Run the code above in your browser using DataLab