I have a slightly shorted code example for you:
> FeatureCollection collection = myFeatureSource.getFeatures();
> featureCollection memory = DataUtilities.collection( collection );
I have added this example - and you question - to the wiki:
- http://docs.codehaus.org/display/GEOTDOC/08+FeatureCollection

Given that Andrea is handing out the DefaultFeatureCollection 
constructor I am going to look into
allowing it to take a FeatureCollection as parameter.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to