WmsException rendering features with negative width
---------------------------------------------------
Key: GEOS-3930
URL: http://jira.codehaus.org/browse/GEOS-3930
Project: GeoServer
Issue Type: Bug
Components: WMS
Affects Versions: 2.0.1
Reporter: Bernhard Kiselka
Assignee: Andrea Aime
Priority: Minor
When rendering a feature width read from an attribute I get the following WMSException shown instead of the image: error render feature with negative width.
I had no problem with the following SLD and GeoServer 1.7.3:
<sld:LineSymbolizer>
<sld:Stroke>
<sld:CssParameter name="stroke">#000000</sld:CssParameter>
<sld:CssParameter name="stroke-width">
<ogc:PropertyName>WIDTH</ogc:PropertyName>
</sld:CssParameter>
<sld:CssParameter name="stroke-opacity">1</sld:CssParameter>
</sld:Stroke>
</sld:LineSymbolizer>
A simple (but annoying) workaround is to check in the SLD, if the WIDTH > 0 with a filter:
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>WIDTHAVERAGE</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsGreaterThan>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira