Does your output format support transparency, see https://gis.stackexchange.com/questions/155681/sld-fill-opacity-not-having-any-effect
Ian On Fri, 17 May 2024, 13:49 VANDENSCHRICK, Grégoire, <gvandenschrick@urban.brussels> wrote: > Hi, > > I have a rather simple sld symbology that intends to represent lines by > circles, much like explained in the cookbook; > > here is my sld: > > <?xml version="1.0" encoding="UTF-8"?><sld:StyledLayerDescriptor xmlns=" > http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" > xmlns:gml="http://www.opengis.net/gml" xmlns:ogc=" > http://www.opengis.net/ogc" version="1.0.0"> > <NamedLayer> > <sld:Name>URBAN_DUP_Public_space_filter_18_bicycle</sld:Name> > <UserStyle> > <sld:Name>URBAN_DUP_Public_space_filter_18_bicycle</sld:Name> > <sld:FeatureTypeStyle> > <sld:Rule> > <sld:Title>Bicycle PLUS > <Localized lang="fr">Vélo PLUS</Localized> > <Localized lang="nl">Fiets PLUS</Localized> > <Localized lang="en">Bicycle PLUS</Localized> > </sld:Title> > <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"> > <ogc:PropertyIsEqualTo> > <ogc:PropertyName>VELO</ogc:PropertyName> > <ogc:Literal>1</ogc:Literal> > </ogc:PropertyIsEqualTo> > </ogc:Filter> > <sld:LineSymbolizer uom=" > http://www.opengeospatial.org/se/units/metre"> > <sld:Stroke> > <sld:GraphicStroke> > <sld:Graphic> > <sld:Mark> > <sld:WellKnownName>circle</sld:WellKnownName> > <sld:Fill> > <sld:CssParameter > name="fill">#ff0000</sld:CssParameter> > <sld:CssParameter > name="fill-opacity">0.5</sld:CssParameter> > </sld:Fill> > </sld:Mark> > <sld:Size>40</sld:Size> > </sld:Graphic> > </sld:GraphicStroke> > <CssParameter name="stroke-dasharray">40 40</CssParameter> > </sld:Stroke> > </sld:LineSymbolizer> > </sld:Rule> > </sld:FeatureTypeStyle> > </UserStyle> > </NamedLayer> > </sld:StyledLayerDescriptor> > > I'm under Geoserver 2.24.2, and everything works except the fill-opacity. > Is there a known bug there, or do I do something wrong? I did try to put a > stroke-opacity just after the stroke-dasharray CssParameter, but it's not > working either... > > Thank you already for your ideas/help, > > Greg for BruGIS > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users >
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users