[Mapserver-users] set Filter with phpMapscript

babak.tehrani@geosysnet.de babak.tehrani@geosysnet.de
Wed, 30 Apr 2003 08:58:02 +0200


Hello,

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\"");

But it is not possible to wirte:

$array = array("Germany","France");
$selection = join("|",$array);

I am new to php. Is there a mistake in my code?

Thanks

Babak
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users