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
FeatureSource explicitly working with SimpleFeatureCollection.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves all features in the form of aFeatureCollection
.getFeatures
(Query query) Retrieves features, in the form of aFeatureCollection
, based on aQuery
.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 Details
-
getFeatures
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
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:
-
getFeatures
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:
-