<div dir="ltr">hello,<br>iam new to mapservers and iam trying to display the selected point in&nbsp; terms of lat-long. i get errors in the code which i tried to implement <br>if ( isset($HTTP_POST_VARS[&quot;mapa_x&quot;]) &amp;&amp; isset($HTTP_POST_VARS[&quot;mapa_y&quot;])<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $my_point = ms_newpointObj();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $my_point-&gt;setXY($HTTP_POST_VARS[&quot;mapa_x&quot;],$HTTP_POST_VARS[&quot;mapa_y&quot;]);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $reference_click = pix2geo($mapa_x,$mapa_y,$map-&gt;extent,<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $map-&gt;width,$mapobj-&gt;height);<br><br>function pix2geo($pix_x,$pix_y,$extent,$width,$height) {<br><br>$pix_x_geo_x = ($extent-&gt;maxx - $extent-&gt;minx)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;/ ($width - 1);<br>$pix_x_geo_y = ($extent-&gt;maxy - $extent-&gt;miny) <br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; / ($height - 1);<br>$geo_x = $extent-&gt;minx + $pix_x_geo_x*$pix_x;<br>$geo_y = $extent-&gt;maxy - $pix_x_geo_y*$pix_y;<br>$my_point = ms_newPointObj();<br>$my_point-&gt;setXY($geo_x,$geo_y);<br>return $my_point;<br>

}<br><br></div>