getResult problems
Rodrigo Gaete
rogaete at YAHOO.COM.BR
Mon Sep 10 15:56:09 PDT 2007
Hello Mapserver users
I'm using a structure to fetch all registers associated to a shape. But the fuction returns $numResults times the same record, as shown in the example:
John => House02
Mary => House02
Peter => House02
The fuction returns:
John => House02
John => House02
John => House02
Using the PHP/Mapscript:
************ ********* ********* ***
for ($i = 0; $i < $numResults; $i++) {
$result = $msLayer->getResult($i) ;
$shape = $msLayer->getShape($result->tileindex, $result->shapeindex);
$results[] = $shape;
}
************ ********* ********* ***
Can anyone help me? I'm using Postgres/Postgis to store the information and Mapserver 4.10 and PHP 5.2.1
Regards, Rodrigo Gaete.
Flickr agora em português. Você clica, todo mundo vê.
http://www.flickr.com.br/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070910/23556dc0/attachment.htm>
More information about the MapServer-users
mailing list