Filter encoding - OR example with more than 2 features?
Bart van den Eijnden (OSGIS)
bartvde at XS4ALL.NL
Tue Feb 28 08:32:51 PST 2006
Debbie,
it depends on your Mapserver version, there was a bug that not more than
2 conditions could be nested with And or Or. 4.8.1 should have that
fixed for sure.
See this for more details:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1277
Btw officially it is Or and not OR, and even more officially it should
be ogc:Or
Best regards,
Bart
Pagurek,Debbie [NCR] wrote:
>I did a quick search but couldn't find a filter encoding that allowed an
>OR to be used to find more than 2 features.
>
>I found this for 2 features:
>http://www2.dmsolutions.ca/cgi-bin/mswfs_filter?&VERSION=1.0.0&SERVICE=W
>FS&REQUEST=GetFeature&TYPENAME=popplace&Filter=<Filter><OR><PropertyIsEq
>ualTo><PropertyName>NAME</PropertyName><Literal>Sydney</Literal></Proper
>tyIsEqualTo><PropertyIsEqualTo><PropertyName>NAME</PropertyName><Literal
>
>
>>Digby</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>NAM
>>
>>
>E</PropertyName><Literal>Halifax</Literal></PropertyIsEqualTo></OR></Fil
>ter>
>
> and then tried this for 3 features:
>http://www2.dmsolutions.ca/cgi-bin/mswfs_filter?&VERSION=1.0.0&SERVICE=W
>FS&REQUEST=GetFeature&TYPENAME=popplace&Filter=<Filter><OR><PropertyIsEq
>ualTo><PropertyName>NAME</PropertyName><Literal>Sydney</Literal></Proper
>tyIsEqualTo><PropertyIsEqualTo><PropertyName>NAME</PropertyName><Literal
>
>
>>Digby</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>NAM
>>
>>
>E</PropertyName><Literal>Halifax</Literal></PropertyIsEqualTo></OR></Fil
>ter>
>
>But it didn't work. Any examples out there for how to do this?
>Thanks in advance.
>D. Pagurek
>
>
>
>
>
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
More information about the MapServer-users
mailing list