I only want to modify the in-memory FeatureCollection (my program is a
kind of GIS application, so if the user wants to change the shape file
itself, he must export the modified in-memory FeatureCollection and
override the existing shape file).

Meanwhile I use a "workaround":
After getting a (Data)FeatureCollection from ShapefileDataStore I create
a new DefaultFeatureCollection and use the addAll(.) method to "copy"
all features from to the DefaultFeatureCollection. With the
DefaultFeatureCollection I can perform any kind of modification.

Kind regards

Martin

Michael Bedward schrieb:
> Hi Martin,
> 
> Do you want to eventually delete the features from the shapefile ?  Or
> do you just require an in-memory subset of the features as input for
> some process ?
> 
> Michael
> 
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 




------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to