hi all
im trying to fill a polygon with dashed lines with this standard 4.0 4.0 2.0 4.0. But i dont know if it is possible, all i can do is to use this standard for the outline with <sld:CssParameter name=“stroke-dasharray”> 4.0 4.0 2.0 4.0</sld:CssParameter>.
here is an extract of my .sld
sld:Fill
<sld:CssParameter name=“fill”>#ECE9D8</sld:CssParameter>
<sld:CssParameter name=“fill-opacity”>1.0</sld:CssParameter>
<sld:CssParameter name=“fill-dasharray”>4.0 4.0 2.0 4.0</sld:CssParameter>
</sld:Fill>
instead of “stroke” i use “fill”, but is doesn’t work. someone know how to solve it?
thanks
Montanari
On 5/21/07, Fernando Montanari <fkmontanari@anonymised.com> wrote:
hi all
im trying to fill a polygon with dashed lines with this standard 4.0 4.0 2.0
4.0. But i dont know if it is possible, all i can do is to use this standard
for the outline with <sld:CssParameter name="stroke-dasharray"> 4.0 4.0 2.0
4.0</sld:CssParameter>.
here is an extract of my .sld
<sld:Fill>
<sld:CssParameter
name="fill">#ECE9D8</sld:CssParameter>
<sld:CssParameter name="fill-opacity">1.0</sld:CssParameter>
<sld:CssParameter name="fill-dasharray">4.0 4.0 2.0
4.0</sld:CssParameter>
</sld:Fill>
instead of "stroke" i use "fill", but is doesn't work. someone know how to
solve it?
You can't use a dash array for fills. See
Styled Layer Descriptor - Open Geospatial Consortium for more details. You
could use a graphics fill to achieve the same effect I think.
Ian
--
Ian Turton
http://www.geotools.org
http://pennspace.blogspot.com/
Fernando Montanari ha scritto:
hi all
im trying to fill a polygon with dashed lines with this standard 4.0 4.0 2.0 4.0. But i dont know if it is possible, all i can do is to use this standard for the outline with <sld:CssParameter name="stroke-dasharray"> 4.0 4.0 2.0 4.0</sld:CssParameter>.
here is an extract of my .sld
<sld:Fill>
<sld:CssParameter name="fill">#ECE9D8</sld:CssParameter>
<sld:CssParameter name="fill-opacity">1.0</sld:CssParameter>
<sld:CssParameter name="fill-dasharray">4.0 4.0 2.0 4.0</sld:CssParameter>
</sld:Fill>
instead of "stroke" i use "fill", but is doesn't work. someone know how to solve it?
That's not in the SLD spec, so you can't do it that way.
You have to prepare an image (png, gif) that has the pattern, in a way
that putting togheter copies of these images in a tiling the result
is seamless (that is, you don't see any discontinuity at tile borders).
Cheers
Andrea