It is called SLDContentManager; and SLDs (and SLD which was already  
ported to GeoTools); and I found a few other helper methods. I was  
bundling them all into SLDContentManager (in uDig  
net.refractions.udig.style.sld plugin). Mostly this was clean up;  
documentation; test case work. But as I said I am not too impressed  
with the class and was more viewing it as a starting point.

Jody

On 19/07/2009, at 3:10 AM, Andrea Aime wrote:

> Jody Garnett ha scritto:
>> Hi Andrea:
>> A small update on this one - I have focused the last week on  
>> improving the uDig style editing story. And have turned up not one;  
>> not two; but three helper classes all of which fall into the roll  
>> of a "Builder" for style.
>> I am collapsing them all into one right now; now while it is not  
>> going to quite meet my standards of what literate programming means  
>> - the result should be useful. It operates as a true "Builder"  
>> wrapping around a Style and assisting normal programmers in working  
>> on it.
>> As it stands right now the class SLDContentManager focuses on  
>> letting people work safely on the "default" featureTypeStyle; and  
>> supports look up of featureTypeStyle and Rule by name.
>> SLDContentManager builder = new SLDContentManager( style );
>> // focused on FeatureTypeStyle named "default" out of the box
>> Rule rule = builder.getDefaultRule(); // will grab the default Rule
>> rule = builder.createRule( "john" ); // create the rule John - and  
>> adding it to the current feature type style
>> If you like you can create multiple SLDContentManager on the same  
>> physical Style object; they only maintain state in order to help  
>> edit and avoid all the annoying for loops and null checks. This is  
>> something we could not do when working on immutable data structures  
>> like SimpleFeatureType.
>> Talk to me when you come back from Holiday; and I can copy this  
>> class to GeoTools if you are interested (although I hate the name  
>> on this one).
>
> Doh, during the holiday I coded the builder I was talking about almost
> fully (it just misses support for text and raster symbolizers).
> I don't have the code handy right now but I'll post it tomorrow or
> Monday. Where is yours so that I can have a look at it?
>
> Cheers
> Andrea
>
> -- 
> Andrea Aime
> OpenGeo - http://opengeo.org
> Expert service straight from the developers.


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to