[mapserver-users] retrieve map coordinates with different EPSG

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Fri Sep 7 06:36:49 PDT 2012


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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andrea Peri
Sent: Friday, September 07, 2012 4:18 AM
To: mapserver-users at lists.osgeo.org
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 àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120907/498fdfb5/attachment.htm>


More information about the MapServer-users mailing list