<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello Mapserver users<br><br>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:<br><br><br>John => House02<br>Mary => House02<br>Peter => House02<br><br>The fuction returns:<br>John => House02<br>John => House02<br>John => House02<br><br>Using the PHP/Mapscript:<br>************ ********* ********* ***<br>for ($i = 0; $i < $numResults; $i++) {<br> $result = $msLayer->getResult($i) ;<br> $shape = $msLayer->getShape($result->tileindex, $result->shapeindex);<br><br> $results[] = $shape;<br>}<br>************ ********* ********* ***<br><br>Can anyone help me? I'm using
Postgres/Postgis to store the information and Mapserver 4.10 and PHP 5.2.1<br><br>Regards, Rodrigo Gaete.<br><br></div></div><br>
Flickr agora em português. Você clica, todo mundo vê. <a href="http://br.rd.yahoo.com/mail/taglines/flickr/*http://www.flickr.com.br/">Saiba mais</a>.
</body></html>