UTMRef Constructor (Int32, Char, Double, Double) |
doogal.co.uk Home
Create a new UTM reference object using the WGS84 datum. Checks are made to make sure that the
given parameters are roughly valid, but the checks are not exhaustive with
regards to the easting value. Catching a NotDefinedOnUTMGridException does
not necessarily mean that the UTM reference is well-formed. This is because
that valid values for the easting vary depending on the latitude.
Namespace:
DotNetCoords
Assembly:
DotNetCoords (in DotNetCoords.dll) Version: 1.0.0.22 (1.0.0.22)
Syntaxpublic UTMRef(
int lngZone,
char latZone,
double easting,
double northing
)
Public Sub New (
lngZone As Integer,
latZone As Char,
easting As Double,
northing As Double
)
public:
UTMRef(
int lngZone,
wchar_t latZone,
double easting,
double northing
)
new :
lngZone : int *
latZone : char *
easting : float *
northing : float -> UTMRef
Parameters
- lngZone
- Type: SystemInt32
The longitude zone number. - latZone
- Type: SystemChar
The latitude zone character. - easting
- Type: SystemDouble
The easting in metres. - northing
- Type: SystemDouble
The northing in metres.
ExceptionsException | Condition |
---|
NotDefinedOnUtmGridException |
If any of the parameters are invalid. Be careful that a valid
value for the easting does not necessarily mean that the UTM
reference is well-formed. The current checks do not take into
account the varying range of valid values for the easting for
different latitudes. |
See Also