RES: [Mapserver-users] Questions about queryByPoint and queryByRectangle for PHP/MapScript
Murilo Lacerda Yoshida
murilo.yoshida at agx.com.br
Mon Mar 22 15:55:33 PST 2004
René,
You have to do a getResult... It returns a resultCacheMemberObj and
then you can get the shape index...
Hope that helps,
Murilo
-----Mensagem original-----
De: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] Em nome de Rene Teniere
Enviada em: segunda-feira, 22 de março de 2004 14:35
Para: mapserver-users at lists.gis.umn.edu
Assunto: [Mapserver-users] Questions about queryByPoint and
queryByRectangle for PHP/MapScript
Hi all,
I've spent 2 days researching how to perform a simple info style query
for the features in my site. I have looked at all the literature on the
lists and am still confused. I have this down:
$queryRect = ms_newRectObj();
$queryRect->setExtent($queryMinX,$queryMinY,$queryMaxX,$queryMaxY);
@$map->queryByRect($queryRect);
and
$queryPoint = ms_newPointObj();
$queryPoint->setXY($myQueryX,myQueryY);
@$map->queryByPoint($queryPoint,MS_MULTIPLE,-1);
but what am I supposed to do after that? Should I be doing this to the
layer object instead? I know that MS_SUCCESS or MS_FAILIURE is returned
and I can use a logic loop to go from there. Do I have to open the
database and manually pull out the info for each item? If so, how do I
get the index?
You can see my problem, I find this all very confusing. Please help if
you can.
Thanks,
Rene
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list