Package org.geotools.api.data
Interface SimpleFeatureStore
-
- All Superinterfaces:
FeatureSource<SimpleFeatureType,SimpleFeature>,FeatureStore<SimpleFeatureType,SimpleFeature>,SimpleFeatureSource
- All Known Subinterfaces:
SimpleFeatureLocking
- All Known Implementing Classes:
ContentFeatureStore,CSVFeatureStore,DirectoryFeatureLocking,DirectoryFeatureStore,GeoJSONFeatureStore,JDBCFeatureStore,MemoryFeatureStore,MongoFeatureStore,OracleTransformFeatureStore,PostgisTransformFeatureStore,PropertyFeatureStore,SQLServerTransformFeatureStore,TransformFeatureLocking,TransformFeatureStore
public interface SimpleFeatureStore extends FeatureStore<SimpleFeatureType,SimpleFeature>, SimpleFeatureSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SimpleFeatureCollectiongetFeatures()Retrieves all features in the form of aFeatureCollection.SimpleFeatureCollectiongetFeatures(Query query)Retrieves features, in the form of aFeatureCollection, based on aQuery.SimpleFeatureCollectiongetFeatures(Filter filter)Retrieves features, in the form of aFeatureCollection, based on an OGCFilter.voidmodifyFeatures(String[] names, Object[] attributeValues, Filter filter)voidmodifyFeatures(String name, Object attributeValue, Filter filter)-
Methods inherited from interface FeatureSource
addFeatureListener, getBounds, getBounds, getCount, getDataStore, getInfo, getName, getQueryCapabilities, getSchema, getSupportedHints, removeFeatureListener
-
Methods inherited from interface FeatureStore
addFeatures, getTransaction, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction
-
-
-
-
Method Detail
-
modifyFeatures
void modifyFeatures(String name, Object attributeValue, Filter filter) throws IOException
- Throws:
IOException
-
modifyFeatures
void modifyFeatures(String[] names, Object[] attributeValues, Filter filter) throws IOException
- Throws:
IOException
-
getFeatures
SimpleFeatureCollection getFeatures() throws IOException
Description copied from interface:FeatureSourceRetrieves all features in the form of aFeatureCollection.The following statements are equivalent:
featureSource.getFeatures(); featureSource.getFeatures(Filter.INCLUDE); featureSource.getFeatures(Query.ALL);- Specified by:
getFeaturesin interfaceFeatureSource<SimpleFeatureType,SimpleFeature>- Specified by:
getFeaturesin interfaceSimpleFeatureSource- Returns:
- features retrieved by the
Query - Throws:
IOException- if the underlying data source cannot be accessed.
-
getFeatures
SimpleFeatureCollection getFeatures(Filter filter) throws IOException
Description copied from interface:FeatureSourceRetrieves features, in the form of aFeatureCollection, based on an OGCFilter.- Specified by:
getFeaturesin interfaceFeatureSource<SimpleFeatureType,SimpleFeature>- Specified by:
getFeaturesin interfaceSimpleFeatureSource- Parameters:
filter- the filter to select features; must not benull(use Filter.INCLUDE instead)- Returns:
- features retrieved by the
Filter - Throws:
IOException- if the underlying data source cannot be accessed.- See Also:
Filter
-
getFeatures
SimpleFeatureCollection getFeatures(Query query) throws IOException
Description copied from interface:FeatureSourceRetrieves features, in the form of aFeatureCollection, based on aQuery.- Specified by:
getFeaturesin interfaceFeatureSource<SimpleFeatureType,SimpleFeature>- Specified by:
getFeaturesin interfaceSimpleFeatureSource- Parameters:
query- DataAccess query for requested information, such as typeName, maxFeatures and filter.- Returns:
- features retrieved by the
Query - Throws:
IOException- if the underlying data source cannot be accessed.- See Also:
Query
-
-