Hi,<br>I am trying to perform querybypoint but have been unable to get any result. <br>The procedure that i am following:<br>1) Get clicked pixel points.<br>2) convert to georef coordinates. (Got them correct)<br>3) Querying the layer with this point.<br>4) Checking for results : Found none<br><br>Code Snippet:<br>$mypoint =ms_newPointObj();<br>&nbsp;&nbsp;&nbsp; $mypoint-&gt;setXY(17.94031626 , 79.29237528); // To check i directly put a point though i tried with clicked point as well<br>&nbsp;&nbsp;&nbsp; $check=@$map-&gt;queryByPoint($mypoint,MS_MULTIPLE, 20);<br>&nbsp;&nbsp;&nbsp; $layer1=$map-&gt;getlayerbyname("cotton");<br>&nbsp;&nbsp;&nbsp; if( $check == MS_SUCCESS)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $count_results = $layer1-&gt;getNumResults();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; print "NO = ".$count_results." ";<br>&nbsp;&nbsp;&nbsp; }<br><br>Map file
 snippet:<br>CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'cotton'<br>&nbsp;&nbsp;&nbsp; &nbsp; TEMPLATE "bogus.html"<br>&nbsp;&nbsp;&nbsp; &nbsp; STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; SYMBOL 'circle'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 3<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp;&nbsp; PROJECTION<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "init=epsg:4326"<br>&nbsp;&nbsp;&nbsp; END<br><br>Earlier i wasnt using any template then i used a dummy template (completely blank) to make it work but still it gave no result.<br><br>Please let me know where i am mistaken ?<br><br>I just want to know the coordinates of points nearby clicked point on map.(But first i should get some results!)<br><br>PS: I am using mysql as datasource.<br><br>Thanks and
 Regards,<br>Piyush Jain<br><p>&#32;
      <hr size=1><a href="http://us.rd.yahoo.com/evt=48250/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v9.php?o=US2226&cmp=Yahoo&ctv=AprNI&s=Y&s2=EM&b=50">Pinpoint customers </a>who are looking for what you sell.