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
)
Public Sub New (
utmZoneNumber As Integer,
utmZoneChar As Char,
eastingId As Char,
northingId As Char,
easting As Integer,
northing As Integer,
precision As Precision,
Optional isBessel As Boolean = false
)
public:
MGRSRef(
int utmZoneNumber,
wchar_t utmZoneChar,
wchar_t eastingId,
wchar_t northingId,
int easting,
int northing,
Precision precision,
bool isBessel = false
)
new :
utmZoneNumber : int *
utmZoneChar : char *
eastingId : char *
northingId : char *
easting : int *
northing : int *
precision : Precision *
?isBessel : bool
(* Defaults:
let _isBessel = defaultArg isBessel false
*)
-> MGRSRef
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 Exception | Condition |
---|
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