Interface SimpleFeatureSource

    • 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​(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