Class: Utm_Mgrs

mgrs~Utm_Mgrs()

Extends Utm with method to convert UTM coordinate to MGRS reference.

Constructor

new Utm_Mgrs()

Source:

Extends

  • Utm

Methods

toMgrs() → {Mgrs}

Converts UTM coordinate to MGRS reference.
Source:
Throws:
Invalid UTM coordinate.
Type
TypeError
Returns:
Type
Mgrs
Example
const utmCoord = new Utm(31, 'N', 448251, 5411932);
  const mgrsRef = utmCoord.toMgrs(); // 31U DQ 48251 11932