Click or drag to resize
MGRSRef Constructor (Int32, Char, Char, Char, Int32, Int32, Precision, Boolean)
doogal.co.uk Home



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

Namespace:  DotNetCoords
Assembly:  DotNetCoords (in DotNetCoords.dll) Version: 1.0.0.22 (1.0.0.22)
Syntax
public MGRSRef(
	int utmZoneNumber,
	char utmZoneChar,
	char eastingId,
	char northingId,
	int easting,
	int northing,
	Precision precision,
	bool isBessel = false
)

Parameters

utmZoneNumber
Type: SystemInt32
The UTM zone number representing the longitude.
utmZoneChar
Type: SystemChar
The UTM zone character representing the latitude.
eastingId
Type: SystemChar
Character representing the 100,000km easting square.
northingId
Type: SystemChar
Character representing the 100,000km northing square.
easting
Type: SystemInt32
Easting in metres.
northing
Type: SystemInt32
Northing in metres.
precision
Type: DotNetCoordsPrecision
The precision of the given easting and northing.
isBessel (Optional)
Type: SystemBoolean
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
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