Convert latitude-longitude track points into a local level frame

lalo2llf(trk, pt)

Arguments

trk

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

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.

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.

Note

This function assumes the track is on the surface of the geoid, and also uses a simple spherical model for the geoid. For more accurate conversion to a Cartesian frame, use spatial and mapping packages in Matlab/Octave.