[Chameleon] Re: ExpressionBuilder and OR filter
Yewondwossen Assefa
assefa at dmsolutions.ca
Tue Mar 7 08:13:27 EST 2006
Bart,
This is a limitation on the current implementation of the filter
encoding inside an sld. There is a bug with a better description of the
problem in Mapserver (Bug 1694). It needs to be adressed at one point,
hopefully in the coming weeks. Please add commnsts/suggestions through
the bug.
Later,
Eijnden, B. van den (Bart) wrote:
> Hi list,
>
> I am trying to get the ExpressionBuilder widget to use an OR filter. The SLD
> which is constructed by the widget is:
>
> <StyledLayerDescriptor
> version="1.0.0"><NamedLayer><Name>expressionbuildertempsld</Name><UserStyle>
> <FeatureTypeStyle><Rule><Filter><AND><BBOX><PropertyName>provincies</Propert
> yName><gml:Box srsName=''><coordinates>-116666.666667,305000
> 406666.666667,619000</coordinates></gml:Box></BBOX><OR><PropertyIsEqualTo><P
> ropertyName>OMSCHR</PropertyName><Literal>Zeeland</Literal></PropertyIsEqual
> To><PropertyIsLike wildcard='@' singleChar='.'
> escape='!'><PropertyName>OMSCHR</PropertyName><Literal>Z@</Literal></Propert
> yIsLike></OR></AND></Filter><PointSymbolizer>
> <Graphic>
> <Size>5</Size>
> <Mark>
> <WellKnownName>square</WellKnownName>
> <Fill>
> <CssParameter
> name="fill">#ff0000</CssParameter>
> </Fill>
> </Mark>
> </Graphic>
>
> </PointSymbolizer></Rule></FeatureTypeStyle></UserStyle></NamedLayer></Style
> dLayerDescriptor>
>
> After using applySLD the CLASS expression is incomplete:
>
> // apply sld to layer to create classes
> $oTmpLayer->applySLD( $szSLD, $szLayerName );
>
> CLASS
> NAME "Unknown"
> EXPRESSION ( ("[OMSCHR]" = "Zeeland") )
> METADATA
> END
> STYLE
> ANGLE 360
> COLOR 255 0 0
> SYMBOL 0
> END
> END
>
> This occurs using Mapscript 4.8.1.
>
> Does anybody have an idea what the problem could be? Thanks in advance.
>
> Best regards,
> Bart
>
>
> Disclaimer
> ************************************************************************
> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
> hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
> informeren. Wij adviseren u om bij twijfel over de juistheid of de
> volledigheid van de mail contact met afzender op te nemen.
>
> This message shall not constitute any rights or obligations.
> This message is intended solely for the addressee.
> If you have received this message in error, please delete it and
> notify the sender immediately. When in doubt whether this message
> is correct or complete, please contact the sender.
> ************************************************************************
>
>
--
----------------------------------------------------------------
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 Chameleon
mailing list