Hello.

Someone could tell me if it is possible to use a CQL_FILTER inside a SLD file?

I wish I could write the following portion of an SLD:
...
<Rule>
               <Name>Nivel medio (de 0,5 a 1)</Name>
               <Filter>
                  <Or>
                     <PropertyIsEqualTo>
                        <PropertyName>NU_ZB_ID</PropertyName>
                        <Literal>78</Literal>
                     </PropertyIsEqualTo>
                     <PropertyIsEqualTo>
                        <PropertyName>NU_ZB_ID</PropertyName>
                        <Literal>103</Literal>
                     </PropertyIsEqualTo>
                     <PropertyIsEqualTo>
                        <PropertyName>NU_ZB_ID</PropertyName>
                        <Literal>86</Literal>
                     </PropertyIsEqualTo>
                     <PropertyIsEqualTo>
                        <PropertyName>NU_ZB_ID</PropertyName>
                        <Literal>92</Literal>
                     </PropertyIsEqualTo>
                  </Or>
               </Filter>
               <PolygonSymbolizer>
                  <Fill>
                     <CssParameter name="fill">#FFFF00</CssParameter>
                     <CssParameter name="fill-opacity">1</CssParameter>
                  </Fill>
               </PolygonSymbolizer>
            </Rule>
...

With something similar to, in order to make the SLD more compact:

<Rule>
               <Name>Nivel medio (de 0,5 a 1)</Name>
               <cql_filter>
                  NU_ZB_ID in ('78','103','86','92')
               </cql_filter>
               <PolygonSymbolizer>
                  <Fill>
                     <CssParameter name="fill">#81F79F</CssParameter>
                     <CssParameter name="fill-opacity">1</CssParameter>
                  </Fill>
               </PolygonSymbolizer>
 </Rule>

Is it possible?

Thanks in advance.

Regards.


Pedro Briones García
Jefe de Grupo de Actuaciones y Proyectos
Gerencia de SIG y Consultoría
Grupo Tragsa (Grupo SEPI)



Julián Camarillo, 6B · Planta 2ªB
28037 Madrid
Tel.: +34 91 322 64 89
Fax: +34 91 322 64 48
[email protected]
www.tragsa.es<http://www.tragsa.es>


En beneficio del medio ambiente, imprime este e-mail sólo si realmente es 
necesario.

**********************************************************************************************
El consumo de papel es perjudicial para el medio ambiente. Por favor, tengalo 
en cuenta antes de imprimir este mensaje.

AVISO LEGAL: Este mensaje y sus anexos pueden contener informacion confidencial 
o legalmente protegida. Esta dirigido unicamente a la persona o entidad 
indicada como destinatarios del mensaje. Si este 
mensaje le hubiera llegado por error, por favor eliminelo sin revisarlo ni 
reenviarlo y notifiquelo inmediatamente al remitente. 
**********************************************************************************************
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to