> > This would allow to perform the change in a well centralized place without
> > having to
> > mess with the rendering code and pass everywhere the hidelabels flag like
> > the patch does.
> > 
> 
> Unfortunately there is no support for VendorOption in FeatureTypeStyle
> in current GeoTools version (it is only implemented for TextSymbolizers).
> I think it would be nice to have it implemented for all kinds of
> symbolizers and FeatureTypeStyle or to have possibility of attaching
> userData map for org.geotools.styling.Style and related classes.
> 
> Adding this and making StreamingRenderer more extensible would indeed
> make is possible to implement the functionality I need in a way
> transparent to code which uses GeoTools' renderer and MapContent.

Please have a look at this page - 
http://docs.geotools.org/latest/userguide/library/render/map.html

The class Layer has a getUserData():Map<String,Object>.

This is were you can prototype an opacity hint for streaming renderer. This
is how we are representing the "vendor specific options" in MapContext file 
(yes I know this is not part of SLD).

> No need to worry. I was aware that it could be rejected. The patch (and
> several others I have recently submitted) was created a while ago as a
> quick way to implement some functionality I required. I had some spare
> time recently, so I decided to clean up/comment the code and submit it.

Thanks for being a good sport. 
> For now I just stick to my way of doing things, as it works fine for
> me and eventually will try to implement it in a less intrusive way (using
> userData to hold additional information on layer level and wrapping
> StreamingRenderer to render map in several steps and compose images with
> require opacity).
> I have to use forked GeoTools version anyway as there are more changes
> (which are not ready for submission as a patch yet) and some bugfixes I
> need (GEOT-3144, GEOT-3970).
> 
> Be prepared to hear from me again :)
Looking forward to it,
Jody 

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to