[mapserver-users] SLD Filter with comment breaks filter
Arnd Wippermann
arnd.wippermann at web.de
Fri May 6 15:29:34 PDT 2011
Hi,
The filter PropertyIsLike works now as expected with 6 RC2.
I have noticed two other issues:
1. The use of a filter And/Or with two or more conditions and adding a
comment between the conditions
resolves to true for all features, whether true or not.
<Filter>
<And>
<PropertyIsLike wildCard="*" singleChar="." escape="!">
<PropertyName>NA3DESC</PropertyName><Literal>Asia</Literal>
</PropertyIsLike>
<!-- comment causes only one class in temporary mapfile -->
<PropertyIsLike wildCard="*" singleChar="." escape="!">
<PropertyName>DESCRIPTIO</PropertyName><Literal>Continent</Literal>
</PropertyIsLike>
</And>
</Filter>
2. The use of a filter And/Or with only one condition
resolves to true for all features, whether true or not.
<Filter>
<And>
<PropertyIsLike wildCard="*" singleChar="." escape="!">
<PropertyName>NA3DESC</PropertyName><Literal>Asia</Literal>
</PropertyIsLike>
</And>
</Filter>
Arnd
More information about the MapServer-users
mailing list