Create a new MGRS reference object from the given String. Must be correctly formatted otherwise an ArgumentException will be thrown.

Namespace:  DotNetCoords
Assembly:  DotNetCoords (in DotNetCoords.dll) Version: 1.0.0.1 (1.0.0.1)

Syntax

C#
public MGRSRef(
	string gridRef,
	bool isBessel
)
Visual Basic (Declaration)
Public Sub New ( _
	gridRef As String, _
	isBessel As Boolean _
)
Visual C++
public:
MGRSRef(
	String^ gridRef, 
	bool isBessel
)

Parameters

gridRef
Type: System..::.String
a string to create an MGRS reference from.
isBessel
Type: System..::.Boolean
True if the parameters represent an MGRS reference using the Bessel 1841 ellipsoid; false is the parameters represent an MGRS reference using the GRS 1980, International or WGS84 ellipsoids.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionif the given String is not correctly formatted.

See Also