| java.lang.Object org.geotools.data.AbstractFeatureSource
All known Subclasses: org.geotools.data.ogr.OGRFeatureSource, org.geotools.data.wfs.WFSFeatureSource, org.geotools.data.AbstractFeatureStore,
AbstractFeatureSource | abstract public class AbstractFeatureSource implements FeatureSource(Code) | | This is a starting point for providing your own FeatureSource implementation.
Subclasses must implement:
-
getDataStore()
-
getSchema()
-
addFeatureListener()
-
removeFeatureListener()
You may find a FeatureSource implementations that is more specific to your needs - such as
JDBCFeatureSource.
For an example of this class customized for use please see MemoryDataStore.
author: Jody Garnett, Refractions Research Inc |
AbstractFeatureSource | public AbstractFeatureSource()(Code) | | |
AbstractFeatureSource | public AbstractFeatureSource(Set hints)(Code) | | This constructors allows to set the supported hints
Parameters: hints - |
getBounds | public Envelope getBounds() throws IOException(Code) | | Retrieve Bounds of all Features.
Currently returns null, consider getFeatures().getBounds() instead.
Subclasses may override this method to perform the appropriate optimization for this result.
null representing the lack of an optimization throws: IOException - DOCUMENT ME! |
getBounds | public Envelope getBounds(Query query) throws IOException(Code) | | Retrieve Bounds of Query results.
Currently returns null, consider getFeatures( query ).getBounds() instead.
Subclasses may override this method to perform the appropriate optimization for this result.
Parameters: query - Query we are requesting the bounds of null representing the lack of an optimization throws: IOException - DOCUMENT ME! |
getCount | public int getCount(Query query) throws IOException(Code) | | Retrieve total number of Query results.
Currently returns -1, consider getFeatures( query ).getCount() instead.
Subclasses may override this method to perform the appropriate optimization for this result.
Parameters: query - Query we are requesting the count of -1 representing the lack of an optimization |
getFeatures | public FeatureCollection getFeatures(Filter filter) throws IOException(Code) | | Retrieve all Feature matching the Filter.
Parameters: filter - Indicates features to retrieve FeatureResults indicating features matching filter throws: IOException - If results could not be obtained |
getSupportedHints | public Set getSupportedHints()(Code) | | By default, no Hints are supported
|
getTransaction | public Transaction getTransaction()(Code) | | Retrieve the Transaction this FeatureSource is operating against.
For a plain FeatureSource that cannot modify this will always be Transaction.AUTO_COMMIT.
Transacstion FeatureSource is operating against |
namedQuery | protected Query namedQuery(Query query)(Code) | | Ensure query modified with typeName.
This method will make copy of the provided query, using
DefaultQuery, if query.getTypeName is not equal to
getSchema().getTypeName().
Parameters: query - Original query Query with getTypeName() equal to getSchema().getTypeName() |
|
|