Click or drag to resize

MilitaryGridReferenceSystemParse Method (String, Double, Double)

Parses a string into an MGRS coordinate.

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public static MilitaryGridReferenceSystem Parse(
	string value,
	double radius,
	double flattening
)

Parameters

value
Type: SystemString
string
radius
Type: SystemDouble
Equatorial Radius (Semi-Major Axis)
flattening
Type: SystemDouble
Inverse Flattening

Return Value

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