[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] Filtered layer
|
The plugin is for 1.0.x. There are a large number of changes in 1.1
that make adding layer easier so don't copy Jody's code.
Here are a few places to look in the 1.1 code:
ApplicationGIS#addLayersToActiveMap(List<IgeoResource>)
BasicCommandFactory#createAddLayer(ILayer)
Map#getLayerFactory()
Jesse
Jody Garnett wrote:
Cole Markham wrote:
No, it shouldn't track the selection. The idea is that you can save
the current selection as a new layer. This seems easy. So what would
you need to create the new layer?
Oh - there is a community plugin that save the current selection as a
shapefile, and adds it to the current map. I want to generalize this
so you can choose the target (Postgis, Shapefile, etc...).
Although I have considered just making it produce a new layer backed
by a MemoryDataStore, and then people can export that layer out to
Postgis, Shapefile, etc...
Is this the kind of thing you are looking for? If so it is available
under my name in the community section ... feel free to hack it up as
needed. At the very least it can serve as an example for making a new
layer (I had to duck Jesse's api as I was using uDig 1.0.x code).
Jody
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel