Click or drag to resize

MilitaryGridReferenceSystemMGRStoLatLong Method (MilitaryGridReferenceSystem)

Creates a Coordinate object from an MGRS/NATO UTM Coordinate

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public static Coordinate MGRStoLatLong(
	MilitaryGridReferenceSystem mgrs
)

Parameters

mgrs
Type: CoordinateSharpMilitaryGridReferenceSystem
MilitaryGridReferenceSystem

Return Value

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