Instead of creating a new layer with some resources I would like to add
some resources to an existing layer (without create a new one).

Alberto

2012/2/6 Alberto Debiasi <[email protected]>

> Instead of creating a new layer with some resources I would like to add
> some resources to an existing layer (without create a new one).
>
> Alberto.
>
> 2012/2/6 Jody Garnett <[email protected]>
>
>>  Interesting; I usually just pass the AddLayersCommand with more or more
>> resources (and watch it create the default styles etc…).
>>
>> I don't understand your question about "add to an existing layer some
>> resources". The layer looks up the GeoResource to use in the catalog; using
>> the Style to aid in drawing etc...
>>
>> --
>> Jody Garnett
>>
>> On Saturday, 4 February 2012 at 3:11 AM, Alberto Debiasi wrote:
>>
>> Hello everybody,
>>
>> I use the following code in order to create a *new layer *with some
>> resources:
>>
>>            .....
>>            try{
>>            IMap map = ApplicationGIS.getActiveMap();
>>            LayerFactory layerFactory = map.getLayerFactory();
>>         Layer layer = layerFactory.createLayer(resource);
>>              AddLayerCommand cmd = new AddLayerCommand(layer);
>>         map.sendCommandASync(cmd);
>>            }catch(Exception e ){
>>                e.printStackTrace();
>>            }
>>
>> I have a simple question:
>> How can I add to an existing layer some resources?
>>
>>
>> Thanks.
>> Alberto
>>
>>
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>
>>
>>
>> _______________________________________________
>> udig-users mailing list
>> [email protected]
>> http://lists.refractions.net/mailman/listinfo/udig-users
>>
>>
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to