| java.lang.Object org.geotools.data.store.DataFeatureCollection org.geotools.data.DefaultFeatureResults
All known Subclasses: org.geotools.data.jdbc.JDBCFeatureCollection,
DefaultFeatureResults | public class DefaultFeatureResults extends DataFeatureCollection (Code) | | Generic "results" of a query, class.
Please optimize this class when use with your own content.
For example a "ResultSet" make a great cache for a JDBCDataStore,
a temporary copy of an original file may work for shapefile etc.
author: Jody Garnett, Refractions Research |
Field Summary | |
protected FeatureSource | featureSource Feature source used to aquire features, note we are only a
"view" of this FeatureSource, its contents, transaction and events
need to be forwarded through this collection api to simplier code
such as renderers. | protected Query | query | protected FeatureType | schema | protected MathTransform | transform |
featureSource | protected FeatureSource featureSource(Code) | | Feature source used to aquire features, note we are only a
"view" of this FeatureSource, its contents, transaction and events
need to be forwarded through this collection api to simplier code
such as renderers.
|
query | protected Query query(Code) | | Query used to define this subset of features from the feature source
|
transform | protected MathTransform transform(Code) | | |
DefaultFeatureResults | public DefaultFeatureResults(FeatureSource source, Query query) throws IOException(Code) | | FeatureResults query against featureSource.
Please note that is object will not be valid
after the transaction has closed.
Really? I think it would be, it would just reflect the
same query against the featuresource using AUTO_COMMIT.
Parameters: source - Parameters: query - |
boundsReader | protected FeatureReader boundsReader() throws IOException(Code) | | Retrieve a FeatureReader for the geometry attributes only, designed for bounds computation
|
getBounds | public ReferencedEnvelope getBounds()(Code) | | Returns the bounding box of this FeatureResults
This implementation will generate the correct results from reader() if
the provided FeatureSource does not provide an optimized result via
FeatureSource.getBounds( Query ).
If the feature has no geometry, then an empty envelope is returned.
throws: DataSourceException - See IOException See Also: org.geotools.data.FeatureResults.getBounds |
getCount | public int getCount() throws IOException(Code) | | Number of Features in this query.
This implementation will generate the correct results from reader() if
the provided FeatureSource does not provide an optimized result via
FeatureSource.getCount( Query ).
throws: IOException - If feature could not be read throws: DataSourceException - See IOException See Also: org.geotools.data.FeatureResults.getCount |
getSchema | public FeatureType getSchema()(Code) | | FeatureSchema for provided query.
If query.retrieveAllProperties() is true the FeatureSource
getSchema() will be returned.
If query.getPropertyNames() is used to limit the result of the Query a
sub type will be returned based on FeatureSource.getSchema().
DOCUMENT ME! throws: IOException - DOCUMENT ME! throws: DataSourceException - DOCUMENT ME! |
getTransaction | protected Transaction getTransaction()(Code) | | Returns transaction from featureSource (if it is a FeatureStore), or
Transaction.AUTO_COMMIT if it is not.
Transacstion this FeatureResults opperates against |
|
|