SLD ignoring fill-opacity
Pablo Rodríguez Madroño
prodriguez at ADASASISTEMAS.COM
Wed Mar 21 11:13:19 PDT 2007
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
More information about the MapServer-users
mailing list