querybyattributes with multiple results
Dirk Tilger
dirk at ADVTECHME.COM
Mon Jan 29 07:11:56 PST 2007
On Mon, Jan 29, 2007 at 02:24:24PM +0100, Emilio L. Pasamontes wrote:
> The first question: sorry for my english.
>
> And now:
>
> When you do:
>
> $queryString = "('[AREA]' = '10')"
> $queryItem = 'AREA';
> $map->querybyattributes($queryitem,$queryString,MS_MULTIPLE);
for ($nLayer = 0; $nLayer < $map->numlayers; $nLayer++)
{
$oLayer = $map->getLayer($nLayer);
$oLayer->open();
for ($nResult = 0; $nResult < $map->getNumResults(); $nResult++)
{
$oResult - $oLayer->getResult($nResult);
$oShape = $oLayer->getShape($oResult->shapeindex);
}
$oLayer->close();
}
... something like this (there might be a bug hidden somewhere).
Dirk Tilger
More information about the MapServer-users
mailing list