Military Grid Reference System Coordinate

Hierarchy

  • MGRS

Constructors

  • Constructor

    Parameters

    • zone: number

      zone number

    • band: string

      band letter

    • column: string

      column letter

    • row: string

      row letter

    • easting: number

      easting

    • northing: number

      northing

    Returns MGRS

Methods

  • Get the MGRS coordinate accuracy number of digits

    Returns

    accuracy digits

    Returns number

  • Get the MGRS coordinate with specified grid precision

    Returns

    MGRS coordinate

    Parameters

    • Optional type: GridType

      grid type precision

    Returns string

  • Get the MGRS coordinate with the accuracy number of digits in the easting and northing values. Accuracy must be inclusively between 0 (HUNDRED_KILOMETER) and 5 (METER).

    Returns

    MGRS coordinate

    Parameters

    • accuracy: number

      accuracy digits between 0 (inclusive) and 5 (inclusive)

    Returns string

  • Get the band letter

    Returns

    band letter

    Returns string

  • Get the column letter

    Returns

    column letter

    Returns string

  • Get the two letter column and row 100k designator

    Returns

    the two letter column and row 100k designator

    Returns string

  • Get the easting

    Returns

    easting

    Returns number

  • Get the easting and northing concatenated value in the grid type precision

    Returns

    easting and northing value

    Parameters

    Returns string

  • Get the hemisphere

    Returns

    hemisphere

    Returns Hemisphere

  • Get the northing

    Returns

    northing

    Returns number

  • Get the row letter

    Returns

    row letter

    Returns string

  • Get the UTM easting

    Returns

    UTM easting

    Returns number

  • Get the UTM northing

    Returns

    UTM northing

    Returns number

  • Get the zone number

    Returns

    zone number

    Returns number

  • Convert to a point

    Returns

    point

    Returns Point

  • {@inheritDoc}

    Returns string

  • Get the MGRS coordinate accuracy number of digits

    Returns

    accuracy digits

    Throws

    ParseException upon failure to parse the MGRS string

    Parameters

    • mgrs: string

      MGRS string

    Returns number

  • Create

    Returns

    MGRS

    Parameters

    • zone: number

      zone number

    • band: string

      band letter

    • easting: number

      easting

    • northing: number

      northing

    • Optional column: string
    • Optional row: string

    Returns MGRS

  • Encodes a point as a MGRS string

    Returns

    MGRS

    Parameters

    • point: Point

      point

    Returns MGRS

  • Get the column letter from the zone number and easting

    Returns

    column letter

    Parameters

    • zoneNumber: number

      zone number

    • easting: number

      easting

    Returns string

  • Get the column letter from the UTM

    Returns

    column letter

    Parameters

    Returns string

  • Get the two letter column and row 100k designator for a given UTM easting, northing and zone number value

    Returns

    the two letter column and row 100k designator

    Parameters

    • easting: number

      easting

    • northing: number

      northing

    • zoneNumber: number

      zone number

    Returns string

  • Get the row letter from the zone number and northing

    Returns

    row letter

    Parameters

    • zoneNumber: number

      zone number

    • northing: number

      northing

    Returns string

  • Get the row letter from the UTM

    Returns

    row letter

    Parameters

    Returns string

  • Return whether the given string is valid MGRS string

    Returns

    true if MGRS string is valid, false otherwise

    Parameters

    • mgrs: string

      potential MGRS string

    Returns boolean

  • Parse a MGRS string

    Returns

    MGRS

    Throws

    ParseException upon failure to parse the MGRS string

    Parameters

    • mgrs: string

      MGRS string

    Returns MGRS

  • Parse the MGRS string for the precision

    Returns

    grid type precision

    Throws

    ParseException upon failure to parse the MGRS string

    Parameters

    • mgrs: string

      MGRS string

    Returns GridType

Generated using TypeDoc