Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] How to remove all features from a ressource?

There is a "Magic" filter Filter.NONE that indicates that nothing should be filtered.  Use that.

Jesse
On Apr 5, 2007, at 2:59 AM, tony.roth@xxxxxx wrote:

Hi,
I want to remove all features of an ressource with:
 
FeatureStore fs = layer.getGeoRessource().resolve(FeatureStore.class,null);
fs.removeFeatures(Filter arg0)
 
Is it the correct way?
Since I want to remove all features, I do not have to filter. What can I do?
 
I can take a FidFilter which contains all IDs of all features but I hope there is an easier way.
 
tony roth
_______________________________________________
User-friendly Desktop Internet GIS (uDig)


Back to the top