Package org.geotools.api.data
Interface SimpleFeatureSource
-
- All Superinterfaces:
FeatureSource<SimpleFeatureType,SimpleFeature>
- All Known Subinterfaces:
SimpleFeatureLocking
,SimpleFeatureStore
,XmlFeatureSource
- All Known Implementing Classes:
CollectionFeatureSource
,ContentFeatureSource
,ContentFeatureStore
,CSVFeatureSource
,CSVFeatureStore
,DefaultView
,DirectoryFeatureLocking
,DirectoryFeatureSource
,DirectoryFeatureStore
,GeoJSONFeatureSource
,GeoJSONFeatureStore
,GraticuleFeatureSource
,JDBCFeatureSource
,JDBCFeatureStore
,JoiningJDBCFeatureSource
,MemoryFeatureSource
,MemoryFeatureStore
,MongoFeatureSource
,MongoFeatureStore
,OracleTransformFeatureStore
,PostgisTransformFeatureStore
,PreGeneralizedFeatureSource
,PropertyFeatureSource
,PropertyFeatureStore
,SpatialIndexFeatureSource
,SQLServerTransformFeatureStore
,STACFeatureSource
,TransformFeatureLocking
,TransformFeatureSource
,TransformFeatureStore
,VectorMosaicFeatureSource
,VPFCovFeatureSource
,VPFFeatureSource
,VPFFileFeatureSource
,VPFLibFeatureSource
,WFSStoredQueryFeatureSource
public interface SimpleFeatureSource extends FeatureSource<SimpleFeatureType,SimpleFeature>
FeatureSource explicitly working with SimpleFeatureCollection.
-
-
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
.-
Methods inherited from interface FeatureSource
addFeatureListener, getBounds, getBounds, getCount, getDataStore, getInfo, getName, getQueryCapabilities, getSchema, getSupportedHints, removeFeatureListener
-
-
-
-
Method Detail
-
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>
- 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>
- 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>
- 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
-
-