Learn R Programming

tagtools (version 0.2.0)

lalo2llf: Convert latitude-longitude track points into a local level frame

Description

Convert latitude-longitude track points into a local level frame

Usage

lalo2llf(trk, pt = NULL)

Value

A data frame with columns northing and easting of track points in the local level frame. Northing and easting are in metres. The axes of the frame are true (geographic) north and true east.

Arguments

trk

A data frame, two-column matrix, two-element vector of track points c(latitude, longitude) or sensor data structure.

pt

c(latitude, longitude) of the centre point of the local level frame. If pt is not given, the first point in the track will be used.

Examples

Run this code
coordinates <- matrix(c(
-122.4194, 37.7749,
-73.9352,  40.7306), nrow = 2, ncol = 2, byrow = TRUE)
lalo2llf(coordinates, c(15,19))

Run the code above in your browser using DataLab