org.geotools.data.wfs.v1_0_0
Class WFSFeatureSource.WFSFeatureResults
Object
DataFeatureCollection
DefaultFeatureResults
WFSFeatureSource.WFSFeatureResults
- All Implemented Interfaces:
- FeatureCollection<SimpleFeatureType,SimpleFeature>
- Enclosing class:
- WFSFeatureSource
public static class WFSFeatureSource.WFSFeatureResults
- extends DefaultFeatureResults
- Author:
- dzwiers
Method Summary |
ReferencedEnvelope |
getBounds()
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 ). |
int |
getCount()
Number of Features in this query. |
SimpleFeatureType |
getSchema()
FeatureSchema for provided query. |
FeatureReader<SimpleFeatureType,SimpleFeature> |
reader()
Retrieve a FeatureReader for this Query |
Methods inherited from class DataFeatureCollection |
accepts, accepts, add, addAll, addAll, addListener, clear, close, close, closeIterator, contains, containsAll, features, fireChange, fireChange, fireChange, getID, isEmpty, iterator, openIterator, purge, remove, removeAll, removeListener, retainAll, size, sort, sort, subCollection, toArray, toArray, writer |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WFSFeatureSource.WFSFeatureResults
public WFSFeatureSource.WFSFeatureResults(WFSFeatureSource fs,
Query query)
throws IOException
- Parameters:
fs
- query
-
- Throws:
IOException
getSchema
public SimpleFeatureType getSchema()
- Description copied from class:
DefaultFeatureResults
- 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().
- Specified by:
getSchema
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
- Overrides:
getSchema
in class DefaultFeatureResults
- Returns:
- DOCUMENT ME!
- See Also:
org.geotools.data.FeatureResults#getSchema()
reader
public FeatureReader<SimpleFeatureType,SimpleFeature> reader()
throws IOException
- Description copied from class:
DefaultFeatureResults
- Retrieve a FeatureReader for this Query
- Overrides:
reader
in class DefaultFeatureResults
- Returns:
- FeatureReader for this Query
- Throws:
IOException
- If results could not be obtained- See Also:
org.geotools.data.FeatureResults#reader()
getBounds
public ReferencedEnvelope getBounds()
- Description copied from class:
DefaultFeatureResults
- 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.
- Specified by:
getBounds
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
- Overrides:
getBounds
in class DefaultFeatureResults
- Returns:
- An Envelope containing the total bounds of this collection.
- See Also:
org.geotools.data.FeatureResults#getBounds()
getCount
public int getCount()
throws IOException
- Description copied from class:
DefaultFeatureResults
- 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 ).
- Overrides:
getCount
in class DefaultFeatureResults
- Throws:
IOException
- If feature could not be read
DataSourceException
- See IOException- See Also:
org.geotools.data.FeatureResults#getCount()
Copyright © 1996-2009 Geotools. All Rights Reserved.