Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-users] Re: [udig-devel] Restart selection of features

I am going to assume your button is making use of a
FeatureCollection.iterator() or FeatureCollection.features() method in
order to give you an iterator.

Close your iterator; ask your feature collection for a new iterator
(which will start at the top of your feature collection).

Jody

On Mon, Apr 27, 2009 at 2:25 AM, Sebastian Alzaradel <sebalza@xxxxxxxxx> wrote:
> Hi everyone,
>
>
>
> I develop an action button that when you press on it, shows different
> features, one by one, of a layer that corresponds to a particular query.
> This is, when I press it shows me 1 feature, if I press again it shows me 2
> features, and so on.
>
> This is working good, but how can I restart that layer, I mean, show all the
> features that it has?? The layer.getResource returns me the FeatureSource
> only with the features that are previously shown. I am using
> FeatureCollection.
>
>
>
> Hope I explain well with my spanglish.
>
> Thanks
>
>
>
> Sebastian
>
>
>
> __________ Información de ESET NOD32 Antivirus, versión de la base de firmas
> de virus 4035 (20090425) __________
>
> ESET NOD32 Antivirus ha comprobado este mensaje.
>
> http://www.eset.com
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>


Back to the top