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 SimpleFeatureCollection
getFeatures()
Retrieves all features in the form of aFeatureCollection
.SimpleFeatureCollection
getFeatures(Query query)
Retrieves features, in the form of aFeatureCollection
, based on aQuery
.SimpleFeatureCollection
getFeatures(Filter filter)
Retrieves features, in the form of aFeatureCollection
, based on an OGCFilter
.void
modifyFeatures(String[] names, Object[] attributeValues, Filter filter)
void
modifyFeatures(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:FeatureSource
Retrieves all features in the form of aFeatureCollection
.The following statements are equivalent:
featureSource.getFeatures(); featureSource.getFeatures(Filter.INCLUDE); featureSource.getFeatures(Query.ALL);
- Specified by:
getFeatures
in interfaceFeatureSource<SimpleFeatureType,SimpleFeature>
- Specified by:
getFeatures
in 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:FeatureSource
Retrieves features, in the form of aFeatureCollection
, based on an OGCFilter
.- Specified by:
getFeatures
in interfaceFeatureSource<SimpleFeatureType,SimpleFeature>
- Specified by:
getFeatures
in 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:FeatureSource
Retrieves features, in the form of aFeatureCollection
, based on aQuery
.- Specified by:
getFeatures
in interfaceFeatureSource<SimpleFeatureType,SimpleFeature>
- Specified by:
getFeatures
in 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
-
-