[OpenLayers-Users] save Filter

Jimmy Aumard jimmy.aumard at gmail.com
Mon Dec 21 03:35:13 EST 2009


I have look for

<CssParameter name="stroke-dasharray">4 4</CssParameter>

But I don't have that in my SLD.
I feel when OpenLayers create SLD he doesn't look the* strokeDashstyle *
attribute.
I use OpenLayers 2.8.

This is my SLD :

<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"><NamedLayer><Name>polygones</Name><UserStyle><Name>default</Name><IsDefault>1</IsDefault><FeatureTypeStyle><Rule><Name>default</Name><PolygonSymbolizer><Fill><CssParameter
name="fill">#0033FF</CssParameter><CssParameter
name="fill-opacity">0.5</CssParameter></Fill><Stroke><CssParameter
name="stroke">#000000</CssParameter><CssParameter
name="stroke-opacity">1</CssParameter><CssParameter
name="stroke-width">2</CssParameter></Stroke></PolygonSymbolizer></Rule><Rule><Name>polygones.2</Name><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc"><ogc:FeatureId
fid="polygones.2"/></ogc:Filter><PolygonSymbolizer><Fill><CssParameter
name="fill">#EB0909</CssParameter><CssParameter
name="fill-opacity">0.62</CssParameter></Fill><Stroke><CssParameter
name="stroke">#09DCEB</CssParameter><CssParameter
name="stroke-width">2</CssParameter></Stroke></PolygonSymbolizer></Rule></FeatureTypeStyle></UserStyle><UserStyle><Name>select</Name><FeatureTypeStyle><Rule><Name>default</Name><PolygonSymbolizer><Fill><CssParameter
name="fill">#888888</CssParameter><CssParameter
name="fill-opacity">0.5</CssParameter></Fill><Stroke><CssParameter
name="stroke">#000000</CssParameter><CssParameter
name="stroke-opacity">1</CssParameter><CssParameter
name="stroke-width">2</CssParameter></Stroke></PolygonSymbolizer></Rule></FeatureTypeStyle></UserStyle></NamedLayer></StyledLayerDescriptor>

Maybe my version of OpenLayers is not compatible?

Thanks for helping me.

Aumard Jimmy
Développeur - http://www.kinaxia.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091221/9aed2862/attachment.html


More information about the Users mailing list