Chhaya,
You can do it yourself without the MapRequestHandler. The handler
probably doesn't know what projection you're using...is my guess. See
the following code to do it yourself:
int nProjectionType = ProjectionFactory.getProjType(projectionName);
Projection projection =
ProjectionFactory.makeProjection(nProjectionType,
lat,
lon,
scale,
width,
//width of image in web page
height);
//height of image in web page
return projection.inverse(nX, nY);
Works fine for me.
Martin Chapman
-----Original Message-----
From: Chhaya Mudgal [mailto:chhaya@imcs.marine.rutgers.edu]
Sent: Thursday, February 19, 2004 2:01 PM
To: dietrick@bbn.com; rknickm@cc.gatech.edu
Cc: openmap-users@bbn.com
Subject: [OpenMap Users] inverse projection
Hi,
I am using javascript to get x and y coordinates of the image generated
using
imageserver.
I pass these x and y coordintes to MapRequestHandler for
inverseProjection
calculations. The lat lon point that i get from the MapRequestHandler
after
conversion is different from the point at which I click on the image to
get x,y
coord.
THe values are off drastically.
Any idea how to resolve this??
Your help is highle appreciated
THanks
Chhaya
-- [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"] -- [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 Feb 19 16:50:27 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:37 EDT