[Geoserver-users] SLD LineSymbolizer & stroke-dasharray

Hi guys,

I cant get stroke-dasharray to work, specifically:

<CssParameter name="stroke-dasharray">4.0 4.0 2.0 4.0</CssParameter>

This should produce a: 4px line, 4px space, 2px line, 4px space
It currently produces a: 4px line, 1px space, 2px line, 1px space

Also, the stroke is _always_ drawn solid in a LegendGraphic.

I've attached the full SLD, and will file as a bug if somebody else can
reproduce it.

Miles Jordan
Applications Developer
The Australian Antarctic Data Centre

[p] +61 3 6232 3486
[f] +61 3 6232 3359
[e] miles.jordan@anonymised.com
[w] http://www.aad.gov.au/

___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.aad.gov.au/
___________________________________________________________________________

tmp_03305695_2.sld (1.13 KB)

Removing the <CssParameter name="stroke-width">2</CssParameter> parameter yields the correct spacing. But with the stroke-width in there, it seems to clobber the spacing a little. I have antialiasing turned on, so that might be some of the issue. But maybe I am just looking at it weird.

I changed the values to 4.0 8.0 2.0 8.0 and it looks good.

Brent Owens
(The Open Planning Project)

Miles Jordan wrote:

Hi guys,

I cant get stroke-dasharray to work, specifically:

<CssParameter name="stroke-dasharray">4.0 4.0 2.0 4.0</CssParameter>

This should produce a: 4px line, 4px space, 2px line, 4px space
It currently produces a: 4px line, 1px space, 2px line, 1px space

Also, the stroke is _always_ drawn solid in a LegendGraphic.

I've attached the full SLD, and will file as a bug if somebody else can
reproduce it.

Miles Jordan
Applications Developer
The Australian Antarctic Data Centre

[p] +61 3 6232 3486
[f] +61 3 6232 3359
[e] miles.jordan@anonymised.com
[w] http://www.aad.gov.au/

___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.aad.gov.au/
___________________________________________________________________________