AW: [mapserver-users] SLD Filter with comment breaks filter
Eichner, Andreas - SID-NLKM
Andreas.Eichner at sid.sachsen.de
Mon May 9 03:13:32 PDT 2011
Seems to be a bug in MapServers OGC filter implementation (mapogcfilter.c). I think it blindly handles XML nodes without checking there types which makes comments and text nodes being used as filter arguments as well... The code from MS 5.6.6 is the same as in 6.0rc2 so falling back to a previous version won't be a solution :(
> -----Ursprüngliche Nachricht-----
> Von: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag
> von Arnd Wippermann
> Gesendet: Samstag, 7. Mai 2011 00:30
> An: mapserver-users at lists.osgeo.org
> Betreff: [mapserver-users] SLD Filter with comment breaks filter
>
> 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
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list