Hi Oscar,
Happy new year to you!
I didn't get the same longitude, my value was 1.8346552. But the
conversion still didn't work to go back the other way, giving different
UTM coordinate values than when I started.
When I started with lat/lons, though, the conversions did work out
properly. Is it possible that your coordinates aren't valid UTM
coordinates, or that the Northing value doesn't make sense for your
zone? Not that I know any better, I'm just wondering.
- Don
On Thursday, January 3, 2002, at 07:35 AM, OPW Abbenhuis wrote:
> 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"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Donald Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [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 10:30:51 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT