<div dir="ltr">hello,<br>iam new to mapservers and iam trying to display the selected point in terms of lat-long. i get errors in the code which i tried to implement <br>if ( isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"])<br>
) {<br> $my_point = ms_newpointObj();<br> $my_point->setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]);<br><br> $reference_click = pix2geo($mapa_x,$mapa_y,$map->extent,<br>
$map->width,$mapobj->height);<br><br>function pix2geo($pix_x,$pix_y,$extent,$width,$height) {<br><br>$pix_x_geo_x = ($extent->maxx - $extent->minx)<br> / ($width - 1);<br>$pix_x_geo_y = ($extent->maxy - $extent->miny) <br>
/ ($height - 1);<br>$geo_x = $extent->minx + $pix_x_geo_x*$pix_x;<br>$geo_y = $extent->maxy - $pix_x_geo_y*$pix_y;<br>$my_point = ms_newPointObj();<br>$my_point->setXY($geo_x,$geo_y);<br>return $my_point;<br>
}<br><br></div>