There are several possible solutions. 1. THe selection is a filter on the layer so you can create a feature iterator using the filter (layer.getFilter) and store the iterator on the blackboard. Tough part is when do you close the iterator 2. Store the visited FIDS on the blackboard and for each cycle get the filter and AND it with a not(FildFilter(allVisitedFids)) 3. Load all features and store them on the blackboard 4. Store just the fids on the blackboard and use then to construct FID Queries.
Jesse On Fri, Apr 24, 2009 at 4:49 PM, Rodolphe QUEMERAIS < [email protected]> wrote: > I dare to answer with my limited knowledge... > >>Do I need to create a collection during the selection process, store it > on the blackboard and retrieve the collection later? > I do think so. > >>Is uDig storing already this collection somewhere in a way I can access > that later? > I don't think so but if it exists I'm interested. > > Regards. > Rodolphe QUEMERAIS > > 2009/4/24 Rui Alves <[email protected]> > >> Hi, >> >> I am using the latest stable uDig version 1.1.1. >> >> I want to develop a plug-in that is an action tool. >> Fist with the usual selection tool I select a few features (let's say >> points) >> Then I want to press the action button and I want to have an iteration >> cycle through the features that are selected. >> How can I access to the list? >> Do I need to create a collection during the selection process, store it on >> the blackboard and retrieve the collection later? >> Is uDig storing already this collection somewhere in a way I can access >> that later? >> >> Regards, >> >> Rui Alves >> >> >> _______________________________________________ >> User-friendly Desktop Internet GIS (uDig) >> http://udig.refractions.net >> http://lists.refractions.net/mailman/listinfo/udig-devel >> >> > > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel > >
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
