Hi Alessandro > Ok Micheal, and after used this code? I have to pass it to a featureSource?
No, not if you just want a layer. You can do this... Layer = new FeatureLayer( subsetFeatureCollection, someStyle ); > and if I have to work with a lot of features? If there are too many to fit easily into available memory, I'd follow Jody's suggestion and write the feature collection returned by the subCollection( Filter f ) method out to a shapefile. The example here, plus the javadocs, should show you the way: http://docs.geotools.org/latest/userguide/tutorial/feature/csv2shp.html#write-the-feature-data-to-the-shapefile Michael ------------------------------------------------------------------------------ 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
