org.geotools.data.wfs.v1_0_0
Class WFSFeatureSource.WFSFeatureResults
java.lang.Object
org.geotools.data.store.DataFeatureCollection
org.geotools.data.DefaultFeatureResults
org.geotools.data.wfs.v1_0_0.WFSFeatureSource.WFSFeatureResults
- All Implemented Interfaces:
- FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
- Enclosing class:
- WFSFeatureSource
public static class WFSFeatureSource.WFSFeatureResults
- extends DefaultFeatureResults
- Author:
- dzwiers
Method Summary |
ReferencedEnvelope |
getBounds()
Returns the bounding box of this FeatureResults |
int |
getCount()
Number of Features in this query. |
org.opengis.feature.simple.SimpleFeatureType |
getSchema()
FeatureSchema for provided query. |
FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
reader()
Retrieve a FeatureReader for this Query |
Methods inherited from class org.geotools.data.store.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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WFSFeatureSource.WFSFeatureResults
public WFSFeatureSource.WFSFeatureResults(WFSFeatureSource fs,
Query query)
throws java.io.IOException
- Parameters:
fs
- query
-
- Throws:
java.io.IOException
getSchema
public org.opengis.feature.simple.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<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
- Overrides:
getSchema
in class DefaultFeatureResults
- Returns:
- DOCUMENT ME!
- See Also:
org.geotools.data.FeatureResults#getSchema()
reader
public FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader()
throws java.io.IOException
- Description copied from class:
DefaultFeatureResults
- Retrieve a FeatureReader for this Query
- Overrides:
reader
in class DefaultFeatureResults
- Returns:
- FeatureReader for this Query
- Throws:
java.io.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<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.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 java.io.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:
java.io.IOException
- If feature could not be read
DataSourceException
- See IOException- See Also:
org.geotools.data.FeatureResults#getCount()
Copyright © 1996-2010 Geotools. All Rights Reserved.