Filter encoding - OR example with more than 2 features?

Pagurek,Debbie [NCR] Debbie.Pagurek at EC.GC.CA
Tue Feb 28 08:13:57 PST 2006


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



More information about the MapServer-users mailing list