Hi All,
I can't find a working syntax for my SLD. I'm filtering names with this:
<ogc:Filter>
<ogc:PropertyIsLike wildCard='*' singleChar='.' escape='!'>
<ogc:PropertyName>NAME</ogc:PropertyName>
<ogc:Literal>S*</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:Filter>
Now I want to show with the same SLD names with "NOT" S* in a different
color. How can I achieve this? Could someone send me a code-snippet please?
I'm using Geoserver 1.5.4.
With best wishes,
Tilo
Tilo Wütherich ha scritto:
Hi All,
I can't find a working syntax for my SLD. I'm filtering names with this:
<ogc:Filter>
<ogc:PropertyIsLike wildCard='*' singleChar='.' escape='!'>
<ogc:PropertyName>NAME</ogc:PropertyName>
<ogc:Literal>S*</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:Filter>
Now I want to show with the same SLD names with "NOT" S* in a different
color. How can I achieve this? Could someone send me a code-snippet please?
It should be:
<ogc:Filter>
<ogc:Not>
<ogc:PropertyIsLike wildCard='*' singleChar='.' escape='!'>
<ogc:PropertyName>NAME</ogc:PropertyName>
<ogc:Literal>S*</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:Not>
</ogc:Filter>
Doesn't this work?
Cheers
Andrea
Hi Andrea,
It should be:
<ogc:Filter>
<ogc:Not>
<ogc:PropertyIsLike wildCard='*' singleChar='.' escape='!'>
<ogc:PropertyName>NAME</ogc:PropertyName>
<ogc:Literal>S*</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:Not>
</ogc:Filter>
Doesn't this work?
it works fine, thank you!
Tilo