[udig-devel] Faster styling

Ugo Taddei ugo.taddei at iais.fraunhofer.de
Wed Mar 12 00:59:59 PDT 2008


Jody Garnett wrote:
> Ugo Taddei wrote:
>> Oops! I forgot about the tutorials. I was looking at the snippet/examples
>> only.
>>   
> Also check out the instructions for importing the source code directly
> from the SDK; makes all of this
> a lot easier.
>>  
>>> I would place the new style on the style blackboard and let the layer
>>> figure it out.
>>> Jody
>>>     
>> Well, I did place it on the blackboard, but never saw an update. So I
>> forced one.
>>   
> On the style blackboard or on the blackboard? The style blackboard
> triggers a render (last I checked anyways). For the normal blackboard we
> don't assume anything - often an entire domain object complete with its
> own event model will be dropped on there.

The style blackboard:

StyleBlackboard styleBlackboard = layer.getStyleBlackboard();
// put the style on the blackboard
			
styleBlackboard.clear();
styleBlackboard.put(SLDContent.ID, style);
(styleBlackboard).setSelected(new String[] { SLDContent.ID });

Cheers,

Ugo

> 
> Cheers,
> Jody
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
> 
> 
> 


-- 
Ugo Taddei

Fraunhofer Institut Intelligente Analyse- und Informationssysteme (FhG IAIS)
http://www.iais.fraunhofer.de
Department Knowledge Discovery - IAIS.KD -
Working Group Spatial Decision Support
http://www.iais.fraunhofer.de/kd.html
phone  (+49)2241-14-2184    fax    (+49)2241-14-2072
Schloss Birlinghoven, D-53754 Sankt Augustin, Germany
------------------------------------------------------
Visit our thematic mapping tool CommonGIS: http://www.commongis.de


More information about the udig-devel mailing list