Learn R Programming

spNetwork (version 0.4.4.6)

nearestPointOnLine: Nearest point on Line

Description

Find the nearest projected point on a LineString (from maptools)

Usage

nearestPointOnLine(coordsLine, coordsPoint)

Value

A numeric vector with the coordinates of the projected point

Arguments

coordsLine

The coordinates of the line (matrix)

coordsPoint

The coordinates of the point

Examples

Run this code
#This is an internal function, no example provided

Run the code above in your browser using DataLab