0

Is an SLD filter like this valid?

<ogc:Filter>
        <ogc:PropertyIsEqualTo>
        <ogc:PropertyName>aaaaaa</ogc:PropertyName>
        <ogc:PropertyName>bbbbb</ogc:PropertyName>
        </ogc:PropertyIsEqualTo>
</ogc:Filter>

or is a Literal always required?

  • You mean can you specify a filter that is true if two properties have the same value? – Spacedman Oct 5 '15 at 21:57
2

I think Literal is always required with that operator. Morever this snippet code is not valid because seems OR or AND condition: take a look here. An example of your code could be:

<ogc:Or>
   <ogc:PropertyIsEqualTo>
   <ogc:PropertyName>aaaaaa</ogc:PropertyName>
   <ogc:Literal>cccccc</ogc:Literal>
   </ogc:PropertyIsEqualTo>
   <ogc:PropertyIsEqualTo>
   <ogc:PropertyName>bbbbb</ogc:PropertyName>
   <ogc:Literal>ddddddd</ogc:Literal>
   </ogc:PropertyIsEqualTo>
   </ogc:Filter>
 </ogc:Or>
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.