[udig-devel] How get the selected features
Jesse Eichar
jeichar at refractions.net
Wed Sep 6 07:47:22 PDT 2006
Here's a snippet for you:
FeatureCollection collection=layer.getResource( FeatureSource.class,
monitor).getFeatures( layer.getFilter() );
the collection is basically a java.util.Collection. But you have to
make sure to close the iterators so you don't leave network
connections open.
Cheers,
Jesse
On 6-Sep-06, at 4:23 AM, Francisco Javier García González wrote:
> Hello.
>
> How can I get the features selected with the Selection Tool within
> the code?
>
> thanks in advance.
>
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
More information about the udig-devel
mailing list