MilitaryGridReferenceSystemMGRStoSignedDegree Method
Creates a Signed Degree double[] object from an MGRS/NATO UTM Coordinate
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public static double[] MGRStoSignedDegree(
MilitaryGridReferenceSystem mgrs
)
- mgrs MilitaryGridReferenceSystem
- MilitaryGridReferenceSystem
Doubledouble[]
The following example creates (converts to) a geodetic Coordinate object based on a MGRS object.
MilitaryGridReferenceSystem mgrs = new MilitaryGridReferenceSystem("N", 21, "SA", 66037, 61982);
double[] sd = MilitaryGridReferenceSystem.MGRStoSignedDegree(mgrs);
Coordinate c = new Coordinate(sd[0],sd[1], new EagerLoad(false));
Console.WriteLine(c); //N 0º 33' 35.988" W 60º 0' 0.01"