[OpenLayers-Users] save Filter

Andreas Hocevar ahocevar at opengeo.org
Mon Dec 21 03:47:35 EST 2009


Hi,

OpenLayers 2.8. indeed does not support writing out stroke-dashstyle 
yet. This was introduced 3 months ago 
(http://trac.openlayers.org/ticket/2270). So please use OpenLayers 
trunk, or at least apply the patch from the above ticket.

Regards,
Andreas.

Jimmy Aumard wrote:
> 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
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list