[udig-devel] get currently selected features?

Vince Darley vince.darley at eurobios.com
Mon Apr 16 03:06:13 PDT 2007


How can I get a feature source containing all currently selected 
features on the current map?  Or, more precisely, get the bounding 
box or envelope of those features?

I've taken a look at example code like:

http://svn.geotools.org/udig/branches/1.1.x/udig/tutorials/net.refractions.udig.code.examples/src/net/refractions/udig/code/examples/GetSelectedFeaturesFromLayer.java

But it says:

                // do something.
                   // the features here will have no attributes or 
geometry but you can call getID().
                   // warning you can't call getBounds() cause 
there's no geometry.  this is a bug that
                   //still needs to be fixed

so that doesn't sound good for me.  Seems like this should be a FAQ, 
but I simply can't find any useful information on such a simple request.

thanks for any pointers,

Vince.



More information about the udig-devel mailing list