Ticket #1637 (closed defect: fixed)
SLD WMS GetStyles: bug translating regex to PropertyIsLike
| Reported by: | bartvde@… | Owned by: | mapserverbugs |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | WMS Server | Version: | 4.8 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
In my layer there is the following regex for a certain class:
CLASS
EXPRESSION /V\*/
STYLE
COLOR 170 170 73
SYMBOL 0
END
NAME "V* = H 25-40 L 120"
END
When doing a GetStyles request, the following Rule is generated:
<Rule>
<Name>V* = H 25-40 L >120</Name>
<ogc:Filter><ogc:PropertyIsLike wildCard="*" singleChar="#"
escape="!"><ogc:PropertyName>EERSTE_GWT</ogc:PropertyName><ogc:Literal>V\*</ogc:Literal></ogc:PropertyIsLike></ogc:Filter>
<MaxScaleDenominator>100000.000000</MaxScaleDenominator>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#aaaa49</CssParameter>
</Fill>
</PolygonSymbolizer>
</Rule>
<Rule>
The OGC literal used is not correct ofcourse, ideally this should be translated
into a Ogc:PropertyIsEqualTo with a literal of V*.
Change History
Note: See
TracTickets for help on using
tickets.
