Hi list,
I am trying to render a semi-opaque icon on my map:
====================================================================
StyleFactory sf = CommonFactoryFinder.getStyleFactory(GeoTools.
getDefaultHints());
FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(GeoTools.
getDefaultHints());
Graphic graphic = sf.getDefaultGraphic();
ExternalGraphic eGr = sf.createExternalGraphic(<SVG_URL>,
"image/svg+xml");
graphic.setOpacity(ff.literal(0.4));
Symbolizer sym = sf.createPointSymbolizer(graphic, "the_geom");
====================================================================
While using raster graphics (eg. PNGs) the opacity gets set, nothing
happens to a vectorial external graphic.
This is the XML of the descriptor:
====================================================================
<?xml version="1.0" encoding="UTF-8"?>
<sld:UserStyle 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">
<sld:Name>Default Styler</sld:Name>
<sld:FeatureTypeStyle>
<sld:Name>name</sld:Name>
<sld:Rule>
<sld:PointSymbolizer>
<sld:Geometry>
<ogc:PropertyName>the_geom</ogc:PropertyName>
</sld:Geometry>
<sld:Graphic>
<sld:ExternalGraphic>
<sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href="<SVG_URL>"/>
<sld:Format>image/svg+xml</sld:Format>
</sld:ExternalGraphic>
<sld:Opacity>0.4</sld:Opacity>
<sld:Size>32.0</sld:Size>
</sld:Graphic>
</sld:PointSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
====================================================================
Is there a limitation in the StreamingRenderer?
Thanks for the help!
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users