[mapserver-users] retrieve map coordinates with different EPSG

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Fri Sep 7 07:29:48 PDT 2012


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: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Fawcett, David (MPCA) [David.Fawcett at state.mn.us]
Sent: Friday, September 07, 2012 8:36 AM
To: Andrea Peri; mapserver-users at lists.osgeo.org
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: 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/62e5e837/attachment-0001.html>


More information about the mapserver-users mailing list