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
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
| Exception | Condition |
|---|
| System..::.ArgumentException | If 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