Re: OpenMap demo question

From: OPW Abbenhuis <abbenhuis@fel.tno.nl>
Date: Thu Jan 03 2002 - 07:35:22 EST

Hi Donald,

Had a nice holiday?

I just looked into my lat/lon to UTM conversion problem.

What happens is the following (code snippets):

pNorthing = 5700000f
pEasting = 0f
pZone = 32
pLetter = U

    UTMPoint utm = new UTMPoint(pNorthing, pEasting, pZone, pLetter);
    LatLonPoint ll = utm.toLatLonPoint();
    mMapBean.setCenter(ll);

At this the lat/lon coordinate is: 51.231476, -4.1653447

Yet when I do the following:

      UTMPoint up = new UTMPoint(new LatLonPoint(51.231476, -4.1653447));

Then up contains the following:
    - Zone: 30
    - Letter: U
    - easting: 418636.97, 5676211.5

All is supposed to work with the same default ellipsoid WGS_84.

I must be doing something wrong, it's just that I can't see it.

Thanks for your help,
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 Jan 3 07:37:03 2002

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