WFS GetFeature Filter multiplicity
Yewondwossen Assefa
assefa at DMSOLUTIONS.CA
Wed Feb 9 17:22:35 PST 2005
Tom,
The OR operator can only have 2 conditions. In your case you should
change your filter to something like <OR><OR>condition1
condition2</OR>condition3</OR>.
Later,
Kralidis,Tom [Burlington] wrote:
> Hi,
>
> Can MapServer WFS Server handle filter with multiple conditions within
> logical operators?
>
> I find that if I try a PropertyIsLike query within an Or block, it only
> handles up to two PropertyIsLike conditions.
>
> This works:
>
> <Filter>
> <PropertyIsLike wildCard='*' singleChar='.' escape='!'>
> <PropertyName>abstract</PropertyName>
> <Literal>mercalli</Literal>
> </PropertyIsLike>
> </Filter>
>
> This works:
>
> <Filter>
> <Or>
> <PropertyIsLike wildCard='*' singleChar='.' escape='!'>
> <PropertyName>title</PropertyName>
> <Literal>mercalli</Literal>
> </PropertyIsLike>
> <PropertyIsLike wildCard='*' singleChar='.' escape='!'>
> <PropertyName>abstract</PropertyName>
> <Literal>mercalli</Literal>
> </PropertyIsLike>
> </Or>
> </Filter>
>
> This does not work:
>
> <Filter>
> <Or>
> <PropertyIsLike wildCard='*' singleChar='.' escape='!'>
> <PropertyName>title</PropertyName>
> <Literal>mercalli</Literal>
> </PropertyIsLike>
> <PropertyIsLike wildCard='*' singleChar='.' escape='!'>
> <PropertyName>abstract</PropertyName>
> <Literal>mercalli</Literal>
> </PropertyIsLike>
> <PropertyIsLike wildCard='*' singleChar='.' escape='!'>
> <PropertyName>keywords</PropertyName>
> <Literal>mercalli</Literal>
> </PropertyIsLike>
> </Or>
> </Filter>
>
>
> It looks like the third PropertyIsLike condition is totally ignored and
> not queried. That is, if I enter a search term which I know will only
> satisfy the 3rd PropertyIsLike condition, I get no results.
>
> I haven't tried this with the other operators, but I'm guessing the
> behaviour would be the same.
>
> ..Tom
>
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list