orthproj: Performs an orthogonal projection to a curve.

Description Usage Arguments Value Side Effects See Also Examples

View source: R/orthproj.R

Description

Finds curve coordinates of points, given points and a curve it returns the length of the points orhogonal projection and the distance traveled to the projection from a given origin on the curve.

Usage

1

Arguments

pts

A list containing the points as \$lat and \$lon, you may also use geolocator.

curve

The curve to be used for projection.

Value

Returns a dataframe with vectors pardist (length of orthogonal projection) and perdist (how far traveled alongst the curve).

Side Effects

None.

See Also

geocurve, geolocator.

Examples

1
2
3
4
## Not run:        geoplot(my.curve)     # Plot curve and initialize plot.
       geocurve(geolocator(),my.curve)         # Mark points.

## End(Not run)

geo documentation built on May 29, 2017, 5:36 p.m.