org.geotools.data.simple
Interface SimpleFeatureSource

All Superinterfaces:
FeatureSource<SimpleFeatureType,SimpleFeature>
All Known Subinterfaces:
SimpleFeatureLocking, SimpleFeatureStore, XmlFeatureSource
All Known Implementing Classes:
AbstractFeatureLocking, AbstractFeatureSource, AbstractFeatureStore, ArcSdeFeatureSource, ArcSdeFeatureStore, CachingFeatureSource, CollectionFeatureSource, ContentFeatureSource, ContentFeatureStore, DefaultView, DirectoryFeatureLocking, DirectoryFeatureSource, DirectoryFeatureStore, JDBCFeatureSource, JDBCFeatureStore, JoiningJDBCFeatureSource, OracleTransformFeatureStore, PreGeneralizedFeatureSource, PropertyFeatureSource, PropertyFeatureStore, SpatialIndexFeatureSource, TransformFeatureSource, TransformFeatureStore, WFSFeatureSource, WFSFeatureSource, WFSFeatureStore

public interface SimpleFeatureSource
extends FeatureSource<SimpleFeatureType,SimpleFeature>

FeatureSource explicitly working with SimpleFeatureCollection.


Method Summary
 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.
 
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 a FeatureCollection.

The following statements are equivalent:


     featureSource.getFeatures();
     featureSource.getFeatures(Filter.INCLUDE);
     featureSource.getFeatures(Query.ALL);
 

Specified by:
getFeatures in interface FeatureSource<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 a FeatureCollection, based on an OGC Filter.

Specified by:
getFeatures in interface FeatureSource<SimpleFeatureType,SimpleFeature>
Parameters:
filter - the filter to select features; must not be null (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 a FeatureCollection, based on a Query.

Specified by:
getFeatures in interface FeatureSource<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


Copyright © 1996-2014 Geotools. All Rights Reserved.