[Mapserver-users] setFilter() Mapscript

Armin Burger armin.burger at libero.it
Thu Mar 6 07:43:05 PST 2003


Sven,

you could try using regular expressions like

testlayer.setFilter('/BU|FI|EI|SLB|ELB|KI|DOU|ÜNB|LÄ/')

or

testlayer.setFilter("'[YOUR_FIELD]' =~ /BU|FI|EI|SLB|ELB|KI|DOU|ÜNB|LÄ/")


Armin


> Hi list,

> I want to pass several attributes as a filter
> for a certain query, everything seems to work fine,
> but as result I get only the first attribute.

> testlayer.setFilter('BU,FI,EI,SLB,ELB,KI,DOU,ÜNB,LÄ')

> Only the class named 'BU' is drawn.
> In addition I would like to know how I can reset the
> FILTER into the initial state.

> Thanks in forward,

> best regards,

> Sven


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





More information about the MapServer-users mailing list