Serial port and GPS

Utils.toUTM Method 

Converts latitude to UTM northing

[Visual Basic]
Public Shared Sub toUTM( _
   ByRef utmnorthing As Double, _
   ByRef utmeasting As Double, _
   ByVal n_lat As Double, _
   ByVal e_long As Double, _
   ByVal system As Datum _
)
[C#]
public static void toUTM(
   out double utmnorthing,
   out double utmeasting,
   double n_lat,
   double e_long,
   Datum system
);

Parameters

utmnorthing
The resulting UTM northing in km
utmeasting
The resulting UTM easting in km
n_lat
north latitude in decimal degrees, negative for south
e_long
east longitude in decimal degress, negative for west
system
the system used for recomputing, WGS84, GRS80 etc.

Return Value

UTM nortihng, negative for south

Remarks

Based on the theoretical description and an Excel sheet from Prof. Steve Dutch, see: http://www.uwgb.edu/DutchS/UsefulData/UTMFormulas.HTM and http://www.uwgb.edu/DutchS/UsefulData/UTMConversions1.xls.

See Also

Utils Class | serial Namespace