MilitaryGridReferenceSystemParse(String, Double, Double) Method

Parses a string into an MGRS coordinate.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static MilitaryGridReferenceSystem Parse(
	string value,
	double radius,
	double flattening
)

Parameters

value  String
string
radius  Double
Equatorial Radius (Semi-Major Axis)
flattening  Double
Inverse Flattening

Return Value

MilitaryGridReferenceSystem
MilitaryGridReferenceSystem

Example

The following example parses an MGRS coordinate set with GRS80 system ellipsoid values.
C#
MilitaryGridReferenceSystem mgrs = MilitaryGridReferenceSystem.Parse("16U EA 00872 05009", 6378137.0, 298.257222101);

See Also