SLD ignoring fill-opacity
Yewondwossen Assefa
assefa at DMSOLUTIONS.CA
Thu Mar 22 08:08:49 PDT 2007
Hi There,
There was a thread explaining the status on the support of opacity at
feature level and sld :
http://www.nabble.com/mapserver-support-for-sld-opacity-fills-tf3439962.html
Later,
Pablo Rodríguez Madroño wrote:
> Good afternoon,
>
> I am using a very simple SLD document in a Java mapscript application under Windows, and it seems to ignore the fill-opacity and the width CSSParameters.
>
> This is my SLD document, which is correctly loaded:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <StyledLayerDescriptor version="1.0.0"
> xmlns="http://www.opengis.net/sld"
> xmlns:gml="http://www.opengis.net/gml"
> xmlns:ogc="http://www.opengis.net/ogc"
> xmlns:xlink="http://www.w3.org/1999/xlink"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
> <NamedLayer>
> <Name>Demarcaciones</Name>
> <UserStyle>
> <Name>TRANSPARENT-POLYGON-GRAY</Name>
> <FeatureTypeStyle>
> <Rule>
> <PolygonSymbolizer>
> <Fill>
> <!--<CssParameter name="fill">#666666</CssParameter>-->
> <CssParameter name="fill-opacity">0.5</CssParameter>
> </Fill>
> <Stroke>
> <!--<CssParameter name="stroke">#726E65</CssParameter>-->
> <CssParameter name="width">1</CssParameter>
> </Stroke>
> </PolygonSymbolizer>
> </Rule>
> </FeatureTypeStyle>
> </UserStyle>
> </NamedLayer>
> </StyledLayerDescriptor>
>
> The document is parsed with default values (so it ignores fill-opacity and width). If the other two CssParameters are uncommented only them are taken into consideration.
>
> The Java code is very simple, so I am not attaching it (if you need it I can post it).
>
> Is there any solution which does not pass through a mapfile workaround?
>
> Thank you very much,
>
> Pablo Rodríguez Madroño
> División de Sistemas de Información
> ADASA Sistemas
> 93.264.06.02
> 600.92.65.10
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list