Create a new MGRS reference object from the given paramaters. It is assumed
that this MGRS reference represents a point using the GRS 1980,
International or WGS84 ellipsoids. An IllegalArgumentException is thrown if
any of the parameters are invalid.
Namespace:
DotNetCoordsAssembly: 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 ) |
| 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 _ ) |
| Visual C++ |
|---|
public: MGRSRef( int utmZoneNumber, wchar_t utmZoneChar, wchar_t eastingID, wchar_t northingID, int easting, int northing, Precision precision ) |
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.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentException | If any of the given parameters are invalid. |