How to: convert lat/lon to UTM

From: OPW Abbenhuis <abbenhuis@fel.tno.nl>
Date: Thu Dec 27 2001 - 10:26:06 EST

Hi,

I've inherited a demonstrator which shows a map the world (political
boundaries)
and adds a DTED layer on top of it (north-sea bit of europe).

The application I need to connect with OpenMap doesn't use lat/lon
coordinates
but UTM coordinates. Somehow from UTM to LatLon works perfectly but
when I want to go from LatLon to UTM suddenly my UTM zone changes.
That is, the original UTM coordinate is in zone 32 and when I convert
it's
LatLon to UTM, the zone of the UTM coordinate is 31. And the coordinate
doesn't come close to the UTM coordinate specified in code.
What I do to convert the UTM is create a new UTMPoint with a LatLonPoint

like this:

public void function(LatLonPoint latLonPoint)
{
    UTMPoint utm = new UTMPoint(latLonPoint);
    .
    .
    .
}

Hope this makes sense...

Thanks for any help.

Kind regards,
Oscar Abbenhuis

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Dec 27 10:26:31 2001

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT