public interface SimpleFeatureStore extends FeatureStore<SimpleFeatureType,SimpleFeature>, SimpleFeatureSource
| Modifier and Type | Method and Description |
|---|---|
SimpleFeatureCollection |
getFeatures()
Retrieves all features in the form of a
FeatureCollection. |
SimpleFeatureCollection |
getFeatures(Filter filter)
Retrieves features, in the form of a
FeatureCollection, based on an OGC Filter. |
SimpleFeatureCollection |
getFeatures(Query query)
Retrieves features, in the form of a
FeatureCollection, based on a Query. |
void |
modifyFeatures(String[] names,
Object[] attributeValues,
Filter filter) |
void |
modifyFeatures(String name,
Object attributeValue,
Filter filter) |
addFeatures, getTransaction, modifyFeatures, modifyFeatures, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransactionaddFeatureListener, getBounds, getBounds, getCount, getDataStore, getInfo, getName, getQueryCapabilities, getSchema, getSupportedHints, removeFeatureListenervoid modifyFeatures(String name, Object attributeValue, Filter filter) throws IOException
IOExceptionvoid modifyFeatures(String[] names, Object[] attributeValues, Filter filter) throws IOException
IOExceptionSimpleFeatureCollection getFeatures() throws IOException
FeatureSourceFeatureCollection.
The following statements are equivalent:
featureSource.getFeatures();
featureSource.getFeatures(Filter.INCLUDE);
featureSource.getFeatures(Query.ALL);
getFeatures in interface FeatureSource<SimpleFeatureType,SimpleFeature>getFeatures in interface SimpleFeatureSourceQueryIOException - if the underlying data source cannot be accessed.SimpleFeatureCollection getFeatures(Filter filter) throws IOException
FeatureSourceFeatureCollection, based on an OGC Filter.getFeatures in interface FeatureSource<SimpleFeatureType,SimpleFeature>getFeatures in interface SimpleFeatureSourcefilter - the filter to select features; must not be null (use Filter.INCLUDE instead)FilterIOException - if the underlying data source cannot be accessed.FilterSimpleFeatureCollection getFeatures(Query query) throws IOException
FeatureSourceFeatureCollection, based on a Query.getFeatures in interface FeatureSource<SimpleFeatureType,SimpleFeature>getFeatures in interface SimpleFeatureSourcequery - DataAccess query for requested information, such as typeName, maxFeatures and
filter.QueryIOException - if the underlying data source cannot be accessed.QueryCopyright © 1996–2019 Geotools. All rights reserved.