[Mapserver-users] QueryByPoint problem

Norbert Thieme norbert.thieme at ilmenau.baw.de
Wed Jul 21 07:11:14 EDT 2004


Olli -- schrieb:
> 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
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 


Hi.

Yes you have to put a TEMPLATE parameter to the layer in your mapfile. 
This could be a dummy because you use mapscript and there the TEMPLATE 
keyword is only used for permission.

Regards,
Norbert



More information about the mapserver-users mailing list