[Geoserver-devel] [jira] Created: (GEOS-581) Stroke is not rendered when it has a stroke-width of 1 pixel, and a stroke-dasharray is specified in GetLegendGraphic request

Stroke is not rendered when it has a stroke-width of 1 pixel, and a stroke-dasharray is specified in GetLegendGraphic request
-----------------------------------------------------------------------------------------------------------------------------

         Key: GEOS-581
         URL: http://jira.codehaus.org/browse/GEOS-581
     Project: GeoServer
        Type: Bug

  Components: WMS
    Versions: 1.3.0
    Reporter: Miles Jordan
Assigned to: Gabriel Roldán
    Priority: Minor

If a stroke has a stroke-width of 1.0 and has a stroke-dasharray specified in its SLD, it is not rendered.

The following SLD snippet will reproduce the bug:

<Stroke>
  <CssParameter name="stroke">#000000</CssParameter>
  <CssParameter name="stroke-opacity">1.0</CssParameter>
  <CssParameter name="stroke-width">1.0</CssParameter>
  <CssParameter name="stroke-dasharray">1.0 8.0</CssParameter>
  <CssParameter name="stroke-dashoffset">0</CssParameter>
</Stroke>

Changing the width to 2.0 does produce the appropriate output for a 2 pixel wide line with a dasharray., so it seems this only happens when the width is set to 1.0.

--
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