Function coord_transforms::geo::ll2utm

source ·
pub fn ll2utm(ll_vec: &Vector2<f64>, ellipsoid: &geo_ellipsoid) -> utm_grid
Expand description

Converts 2-d LL coordinates to UTM Grid (using Karney method) - accruacy to within a few nanometers within 3900km of the central meridian

Arguments

  • ll_vec - Vector2 reference to the LL vector (latitude, longitude) (radians, radians)
  • ellipsoid - geo_ellipsoid reference to the ellipsoid

Return Value

  • utm_grid::utm_grid - UTM Grid the latitude and longitude belong in

Notes

  • Based on code from here: http://www.movable-type.co.uk/scripts/latlong-utm-mgrs.html
  • Based on white paper from here: https://arxiv.org/abs/1002.1417
  • (c) Chris Veness 2014-2017 MIT Licence