org.geotools.renderer.lite
Class IndexedFeatureResults

java.lang.Object
  extended by org.geotools.data.store.DataFeatureCollection
      extended by org.geotools.renderer.lite.IndexedFeatureResults
All Implemented Interfaces:
FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>

public final class IndexedFeatureResults
extends DataFeatureCollection

IndexedFeatureReader

Author:
wolf

Field Summary
 
Fields inherited from class org.geotools.data.store.DataFeatureCollection
id, listeners, schema
 
Constructor Summary
IndexedFeatureResults(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> results)
           
 
Method Summary
 FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> 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<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader()
           
 FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader(com.vividsolutions.jts.geom.Envelope envelope)
           
 void setQueryBounds(com.vividsolutions.jts.geom.Envelope queryBounds)
           
 
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, getSchema, 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
 

Constructor Detail

IndexedFeatureResults

public IndexedFeatureResults(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> results)
                      throws java.io.IOException,
                             IllegalAttributeException
Throws:
java.io.IOException
IllegalAttributeException
Method Detail

reader

public FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader(com.vividsolutions.jts.geom.Envelope envelope)
                                                                                                            throws java.io.IOException
Throws:
java.io.IOException
See Also:
org.geotools.data.FeatureResults#reader()

getBounds

public ReferencedEnvelope getBounds()
Description copied from interface: FeatureCollection
Get the total bounds of this collection which is calculated by doing a union of the bounds of each feature inside of it

Specified by:
getBounds in interface FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
Specified by:
getBounds in class DataFeatureCollection
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
Specified by:
getCount in class DataFeatureCollection
Throws:
java.io.IOException
See Also:
org.geotools.data.FeatureResults#getCount()

collection

public FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection()
                                                                                                                    throws java.io.IOException
Throws:
java.io.IOException
See Also:
org.geotools.data.FeatureResults#collection()

reader

public FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader()
                                                                                                            throws java.io.IOException
Overrides:
reader in class DataFeatureCollection
Throws:
java.io.IOException
See Also:
org.geotools.data.FeatureResults#reader()

setQueryBounds

public void setQueryBounds(com.vividsolutions.jts.geom.Envelope queryBounds)
Parameters:
queryBounds - an Envelope defining the boundary of the query


Copyright © 1996-2010 Geotools. All Rights Reserved.