int tsmLatLongToUTM ( double lat, double lon, int *zone, double *easting, double *northing )

Convert lat/long coordinate to UTM

Documentation

Convert lat/long coordinate to UTM.

This function will take a (latitude,longitude) pair - both given in degrees - and will return the UTM (Universal Transverse Mercator) coord for that point (zone number, easting, and northing).

We use the WGS 84 ellipsoid for the UTM coordinate space.

Returns:
TRUE if all went well, FALSE if an error occurred
Parameters:
lat - the latitude (degrees). Valid range = -180..180
lon - the longitude (degrees). Valid range = -90..90 (not inclusive)
zone - (pointer to) the UTM zone number to be returned
easting - (pointer to) the UTM easting to be returned
northing - (pointer to) the UTM northing to be returned
Author:
Martin Reddy
Version:
20 November 1997
See Also:
tsmUTMToLatLong, tsmLatLongToGeocentric


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page