leaffan ha scritto: > Hejhej, > I've come up with a way to remove all features of a datastore... However, > I'm quite sure that there are more efficient ways to do this, getting rid of > this awkward iteration. Maybe someone can enlighten me.
FeatureStore stor = (FeatureStore) src.getFeatureSource(typeName); stor.removeFeatures(Filter.INCLUDE); (that's on gt2 2.4.x, on previous versions that Filter.INCLUDE should be Filter.NONE). Cheers Andrea ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
