MilitaryGridReferenceSystemMGRStoLatLong(MilitaryGridReferenceSystem, EagerLoad) Method

Creates a Coordinate object from an MGRS/NATO UTM Coordinate

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 2.21.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static Coordinate MGRStoLatLong(
	MilitaryGridReferenceSystem mgrs,
	EagerLoad eagerLoad
)

Parameters

mgrs  MilitaryGridReferenceSystem
MilitaryGridReferenceSystem
eagerLoad  EagerLoad
EagerLoad

Return Value

Coordinate
Coordinate object

Example

The following example creates (converts to) a geodetic Coordinate object based on a MGRS object.
C#
MilitaryGridReferenceSystem mgrs = new MilitaryGridReferenceSystem("N", 21, "SA", 66037, 61982);
Coordinate c = MilitaryGridReferenceSystem.MGRStoLatLong(mgrs, new EagerLoad(false));
Console.WriteLine(c); //N 0º 33' 35.988" W 60º 0' 0.01"

See Also