Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] get currently selected features?

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.



Back to the top