Re: [mapserver-users] retrieve map coordinates with different EPSG
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-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Fawcett, David (MPCA) [david.fawc...@state.mn.us] Sent: Friday, September 07, 2012 8:36 AM To: Andrea Peri; mapserver-users@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-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andrea Peri Sent: Friday, September 07, 2012 4:18 AM To: mapserver-users@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 àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
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-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andrea Peri Sent: Friday, September 07, 2012 4:18 AM To: mapserver-users@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 àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[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 mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users