[Mapserver-users] set Filter with phpMapscript
Daniel Morissette
morissette at dmsolutions.ca
Wed Apr 30 06:47:46 PDT 2003
babak.tehrani at geosysnet.de wrote:
>
> in my mapfile I can use the following syntax to set a filter:
>
> FILTERITEM "NAME"
> FILTER /Germany|France/
>
> In phpmapscript I can use following syntax:
>
> $selection = 'France';
> $layer = $map->getLayerByName("myLayer");
> $layer->setFilter("\"$selection\"");
>
Try using:
$layer->set("filteritem", "NAME");
$layer->setFilter("/Germany|France/");
Daniel
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the MapServer-users
mailing list