1

I am trying to convert sld to css style. The below code is have written SLD style for filter a word using PropertyIsLike

  <ogc:Filter>
      <ogc:PropertyIsLike wildCard="%" singleChar="_" escape="\">
      <ogc:PropertyName>name</ogc:PropertyName>
      <ogc:Literal>%police%</ogc:Literal>
      </ogc:PropertyIsLike>
  </ogc:Filter>

How to write the above SLD in CSS format?

1

Based on the documentation it appears your query would be written as:

[name LIKE '%police%']

It doesn't appear that you can change the wildcard characters based on this:

Patterns use _ to indicate a single unspecified character and % to indicate an unknown number of unspecified characters.

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.