Assuming you're sending the request in pixels, along with a map extent, 
MapServer will convert the point based on the SRS of the extent you passed. I'm 
thinking that won't get you what you want and I'm not sure of a way to do so. 
The various extent tags have projection capabilities built in but the point 
ones don't.

Steve

________________________________
From: [email protected] 
[[email protected]] on behalf of Fawcett, David (MPCA) 
[[email protected]]
Sent: Friday, September 07, 2012 8:36 AM
To: Andrea Peri; [email protected]
Subject: Re: [mapserver-users] retrieve map coordinates with different EPSG

I looked at the documentation because I haven’t used in a while.  The docs 
aren’t clear, but seem to imply that MAPXY should return coordinates in the 
same spatial reference system as the layer that you are querying.

I kind of think that they should be in the spatial reference system of the map. 
 Either way, try setting the map projection to the SRS that you want to get the 
coordinates back in.  You will also have to change the extent values.

David.


http://mapserver.org/cgi/controls.html

From: [email protected] 
[mailto:[email protected]] On Behalf Of Andrea Peri
Sent: Friday, September 07, 2012 4:18 AM
To: [email protected]
Subject: [mapserver-users] retrieve map coordinates with different EPSG

Hi,
Usign the templating capabilities of mapserver.
I need the parameters [mapx] and [mapy] will return the coordinate of a clicked 
point.

I possible in the templates set semothing to have this coordinates [mapx], 
[mapy] in a different
SRS ?
I see there is the [maplon] and [maplat] parameter.
But I need have the coords in another projected EPSG system rather than 
geographic 4326.

Thx

--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to