[Mapserver-users] QueryByPoint problem

Olli -- sivaltaja at hotmail.com
Wed Jul 21 02:55:47 PDT 2004


Hello,

I chose one point from my map and now I try if MapServer would found it 
also. But it says just "point not found". Is the code ok? Do I need to put 
template values to my .map-file?

$point = ms_newPointObj();
$point->setXY(14.49710324,50.05884014);

$queryfound=@$map->queryByPoint($point, MS_MULTIPLE, -1);

if ($queryfound == MS_SUCCESS) {
   echo "Point found";
   }
if ($queryfound == MS_FAILURE) {
   echo "Point not found";
   }

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail




More information about the MapServer-users mailing list