Class: Latlon_Utm_Mgrs

mgrs~Latlon_Utm_Mgrs()

Extends LatLonEllipsoidal adding toMgrs() method to the Utm object returned by LatLon.toUtm().

Constructor

new Latlon_Utm_Mgrs()

Source:

Extends

  • LatLonEllipsoidal

Methods

toUtm(zoneOverrideopt) → {Utm}

Converts latitude/longitude to UTM coordinate. Shadow of LatLon.toUtm, returning Utm augmented with toMgrs() method.
Parameters:
Name Type Attributes Description
zoneOverride number <optional>
Use specified zone rather than zone within which point lies; note overriding the UTM zone has the potential to result in negative eastings, and perverse results within Norway/Svalbard exceptions (this is unlikely to be relevant for MGRS, but is needed as Mgrs passes through the Utm class).
Source:
Throws:
If point not valid, if point outside latitude range.
Type
Error
Returns:
UTM coordinate.
Type
Utm
Example
const latlong = new LatLon(48.8582, 2.2945);
  const utmCoord = latlong.toUtm(); // 31 N 448252 5411933