[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] get currently selected features?
|
Hi Vince,
You have to look at the comment before that about the query that is
used. There is a comment that discusses what a query is. In the
example the second parameter is new String[0], which indicates that
no attributes will be loaded. You can remove that parameter and all
attributes will be loaded (this will be slower of course). Or you
can do an array of the names of all the attributes you want to load.
Jesse
On Apr 16, 2007, at 3:06 AM, Vince Darley wrote:
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.
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel