Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Not A Bug
-
Affects Version/s: 1.3.0
-
Fix Version/s: None
-
Component/s: WMS
-
Labels:None
-
Number of attachments :
Description
When specifying the 'stroke-width' CssParameter with the 'stroke-dasharray' CssParameter in an SLD, if the stroke-width is more than one pixel, the length of each dash that is drawn is extended by the amount of pixels specified in the stroke-width when only the width should be affected.
Hence the following would produce a LineSymbolizer with 6 pixel dash followed by a 2 pixel space, not a 4 pixel dash with a 4 pixel space, as it should be.
<CssParameter name="stroke-width">2.0</CssParameter>
<CssParameter name="stroke-dasharray">4.0 4.0</CssParameter>
This is imho a matter of interpretation. Where do you read that the width should not add to the dasharray length? It actually happens only if you use certain cap styles, that are supposed to make lines longer