I'm trying to get some old code to work with 6.+ and can't retrieve census
counts yet via the old method.Does someone know what the new syntax would be
below?
Thanks
$layer->queryByShape($circle); $numResults = $layer->getNumResults();
if($numResults > 0 && $numResults < 10000){ echo '';
echo '<br/><br/> numResults : '.$numResults;
$totalPop = 0; $error = false; debug("
$numResults results.");
$layer->open();
for($i=0;$i<$numResults;++$i){ // New way
$shpIdx = $layer->getResult($i)->shapeindex;
echo 'shpIdx : '.$shpIdx;
//$feat = $layer->getFeature($shpIdx); // <- DOES NOT
WORK //echo 'feat : '.$feat;
}
$layer->close();
return 1; }else{ return 0; }
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users