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/