Package org.geotools.renderer.lite
Class IndexedFeatureResults
- Object
-
- DataFeatureCollection
-
- IndexedFeatureResults
-
- All Implemented Interfaces:
SimpleFeatureCollection,FeatureCollection<SimpleFeatureType,SimpleFeature>
public final class IndexedFeatureResults extends DataFeatureCollection
IndexedFeatureReader- Author:
- wolf
-
-
Field Summary
-
Fields inherited from class DataFeatureCollection
id, listeners, schema
-
-
Constructor Summary
Constructors Constructor Description IndexedFeatureResults(SimpleFeatureCollection results)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleFeatureCollectioncollection()ReferencedEnvelopegetBounds()Get the total bounds of this collection which is calculated by doing a union of the bounds of each feature inside of itintgetCount()FeatureReader<SimpleFeatureType,SimpleFeature>reader()FeatureReader<SimpleFeatureType,SimpleFeature>reader(Envelope envelope)voidsetQueryBounds(Envelope queryBounds)-
Methods inherited from class DataFeatureCollection
accepts, add, addAll, addAll, addListener, clear, close, close, closeIterator, contains, containsAll, features, fireChange, fireChange, fireChange, getID, getSchema, isEmpty, iterator, openIterator, purge, remove, removeAll, removeListener, retainAll, size, sort, subCollection, toArray, toArray, writer
-
-
-
-
Constructor Detail
-
IndexedFeatureResults
public IndexedFeatureResults(SimpleFeatureCollection results) throws IOException, IllegalAttributeException
- Throws:
IOExceptionIllegalAttributeException
-
-
Method Detail
-
reader
public FeatureReader<SimpleFeatureType,SimpleFeature> reader(Envelope envelope) throws IOException
- Throws:
IOException- See Also:
org.geotools.data.FeatureResults#reader()
-
getBounds
public ReferencedEnvelope getBounds()
Description copied from interface:FeatureCollectionGet the total bounds of this collection which is calculated by doing a union of the bounds of each feature inside of it- Specified by:
getBoundsin interfaceFeatureCollection<SimpleFeatureType,SimpleFeature>- Specified by:
getBoundsin classDataFeatureCollection- Returns:
- An Envelope containing the total bounds of this collection.
- See Also:
org.geotools.data.FeatureResults#getBounds()
-
getCount
public int getCount() throws IOException- Specified by:
getCountin classDataFeatureCollection- Throws:
IOException- See Also:
org.geotools.data.FeatureResults#getCount()
-
collection
public SimpleFeatureCollection collection() throws IOException
- Throws:
IOException- See Also:
org.geotools.data.FeatureResults#collection()
-
reader
public FeatureReader<SimpleFeatureType,SimpleFeature> reader() throws IOException
- Overrides:
readerin classDataFeatureCollection- Throws:
IOException- See Also:
org.geotools.data.FeatureResults#reader()
-
setQueryBounds
public void setQueryBounds(Envelope queryBounds)
- Parameters:
queryBounds- an Envelope defining the boundary of the query
-
-