[mapserver-users] Problem with CGI results

Stefanos Anastasiou emperor_stef at yahoo.gr
Tue Apr 5 15:37:49 PDT 2016


    Hello list.
I'm having a problem I can't understand where it's coming from. I'm using [mapx] and [mapy] parameters to get the coordinates of a simple click. When I click anywhere on the image, the resulting x,y is at least 1 kilometer North-West from where it should. The image coordinates look correct but the x,y are really wrong. I'm copying and pasting my form variables below: 
  <form name="the_form" method=GET action="/cgi-bin/mapserv">
                        <input type="hidden" name="imgext" value="[mapext]">                        <input type="hidden" name="map" value="[map]">                        <input type="image" name="img" src="[img]" width="700" height="500">                        <input type="hidden" name="zoomsize" value="2">

When I first load the map with the following URLhttp://127.0.0.1/cgi-bin/mapserv?map=/home/stefanos/mapdata/mymap.map

x, y are set automatically in -1,000000 -1,000000.
Any idea?


Regards,Stefanos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160405/96585f0a/attachment.html>


More information about the mapserver-users mailing list