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> $mypoint->setXY(17.94031626 , 79.29237528); // To check i directly put a point though i tried with clicked point as well<br> $check=@$map->queryByPoint($mypoint,MS_MULTIPLE, 20);<br> $layer1=$map->getlayerbyname("cotton");<br> if( $check == MS_SUCCESS)<br> {<br> $count_results = $layer1->getNumResults();<br> print "NO = ".$count_results." ";<br> }<br><br>Map file
snippet:<br>CLASS<br> NAME 'cotton'<br> TEMPLATE "bogus.html"<br> STYLE<br> SYMBOL 'circle'<br> SIZE 3<br> COLOR 255 0 0<br> END<br> END<br> PROJECTION<br> "init=epsg:4326"<br> 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>
<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.