public final class IndexedFeatureResults extends DataFeatureCollection
id, listeners, schema
Constructor and Description |
---|
IndexedFeatureResults(SimpleFeatureCollection results) |
Modifier and Type | Method and Description |
---|---|
SimpleFeatureCollection |
collection() |
ReferencedEnvelope |
getBounds()
Get the total bounds of this collection which is calculated by doing a union of the bounds of
each feature inside of it
|
int |
getCount() |
FeatureReader<SimpleFeatureType,SimpleFeature> |
reader() |
FeatureReader<SimpleFeatureType,SimpleFeature> |
reader(Envelope envelope) |
void |
setQueryBounds(Envelope queryBounds) |
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
public IndexedFeatureResults(SimpleFeatureCollection results) throws IOException, IllegalAttributeException
IOException
IllegalAttributeException
public FeatureReader<SimpleFeatureType,SimpleFeature> reader(Envelope envelope) throws IOException
IOException
org.geotools.data.FeatureResults#reader()
public ReferencedEnvelope getBounds()
FeatureCollection
getBounds
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
getBounds
in class DataFeatureCollection
org.geotools.data.FeatureResults#getBounds()
public int getCount() throws IOException
getCount
in class DataFeatureCollection
IOException
org.geotools.data.FeatureResults#getCount()
public SimpleFeatureCollection collection() throws IOException
IOException
org.geotools.data.FeatureResults#collection()
public FeatureReader<SimpleFeatureType,SimpleFeature> reader() throws IOException
reader
in class DataFeatureCollection
IOException
org.geotools.data.FeatureResults#reader()
public void setQueryBounds(Envelope queryBounds)
queryBounds
- an Envelope defining the boundary of the queryCopyright © 1996–2019 Geotools. All rights reserved.