[mapserver-users] Filter on attribute - how?

Steve White steve at online-archaeology.co.uk
Sun Aug 31 07:40:39 EDT 2008


I want to pass in a string of values in one variable and filter on them as
if they are in an OR clause.

 

I've tried the following which works fine:

 

FILTER "Castles"

FILTERITEM "CategoryNa"

 

Now I want to filter on 2 sets like this:

 

FILTER "Castles OR Battlefields"

FILTERITEM "CategoryNa"

 

I'm hardcoding them in the mapfile initially so I know they work, but
eventually I want to use a variable:

 

FILTER "%filtervar%"

FILTERITEM "CategoryNa"

 

The variable substitution works for just one type, but how do I use multiple
types?

 

Cheers,

 

Steve

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080831/a2e6f313/attachment.html


More information about the mapserver-users mailing list