Create a new UTM reference object. 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.9 (1.0.0.9)

Collapse imageSyntax

C#
public UTMRef(
	int lngZone,
	char latZone,
	double easting,
	double northing
)
Visual Basic (Declaration)
Public Sub New ( _
	lngZone As Integer, _
	latZone As Char, _
	easting As Double, _
	northing As Double _
)
Visual C++
public:
UTMRef(
	int lngZone, 
	wchar_t latZone, 
	double easting, 
	double northing
)

Parameters

lngZone
Type: System..::.Int32
The longitude zone number.
latZone
Type: System..::.Char
The latitude zone character.
easting
Type: System..::.Double
The easting in metres.
northing
Type: System..::.Double
The northing in metres.

Collapse imageExceptions

ExceptionCondition
DotNetCoords..::.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.

Collapse imageSee Also