Create a new MGRS reference object from the given paramaters. An ArgumentException is thrown if any of the parameters are invalid.

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

Syntax

C#
public MGRSRef(
	int utmZoneNumber,
	char utmZoneChar,
	char eastingId,
	char northingId,
	int easting,
	int northing,
	Precision precision,
	bool isBessel
)
Visual Basic (Declaration)
Public Sub New ( _
	utmZoneNumber As Integer, _
	utmZoneChar As Char, _
	eastingId As Char, _
	northingId As Char, _
	easting As Integer, _
	northing As Integer, _
	precision As Precision, _
	isBessel As Boolean _
)
Visual C++
public:
MGRSRef(
	int utmZoneNumber, 
	wchar_t utmZoneChar, 
	wchar_t eastingId, 
	wchar_t northingId, 
	int easting, 
	int northing, 
	Precision precision, 
	bool isBessel
)

Parameters

utmZoneNumber
Type: System..::.Int32
The UTM zone number representing the longitude.
utmZoneChar
Type: System..::.Char
The UTM zone character representing the latitude.
eastingId
Type: System..::.Char
Character representing the 100,000km easting square.
northingId
Type: System..::.Char
Character representing the 100,000km northing square.
easting
Type: System..::.Int32
Easting in metres.
northing
Type: System..::.Int32
Northing in metres.
precision
Type: DotNetCoords..::.Precision
The precision of the given easting and northing.
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 any of the given parameters are invalid. Note that the parameters are only checked for the range of values that they can take on. Being able to create an MGRSRef object does not necessarily imply that the reference is valid.

See Also