Hi Alessandro,

If you are only working with a few features, ie. easy to fit into
memory, you could do something like this...

    ListFeatureCollection subset = new ListFeatureCollection(
            myFeatureCollection.subCollection( myFilter ) );

Michael


On 27 July 2011 20:23, lexmc <[email protected]> wrote:
> Thank you for the answer, but I have some problem adapting the crs code to my
> needs. Can you make me an example? I have to create a new layer starting
> from a filter.
>
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/Create-a-new-layer-tp6617789p6625594.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Got Input?   Slashdot Needs You.
> Take our quick survey online.  Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to