org.geotools.arcsde.data
Class ArcSdeFeatureCollection

Object
  extended by DataFeatureCollection
      extended by ArcSdeFeatureCollection
All Implemented Interfaces:
FeatureCollection<SimpleFeatureType,SimpleFeature>

public class ArcSdeFeatureCollection
extends DataFeatureCollection

FeatureCollection implementation that works over an ArcSDEFeatureReader or one of the decorators over it returned by ArcSDEDataStore#getFeatureReader(Query, Session, boolean).

Note this class and the iterators it returns are thread safe.

Since:
2.5
Author:
Gabriel Roldan (TOPP)
See Also:
FeatureCollection
Module:

Field Summary
 
Fields inherited from class DataFeatureCollection
id, listeners, schema
 
Constructor Summary
ArcSdeFeatureCollection(ArcSdeFeatureSource featureSource, SimpleFeatureType queryType, Query namedQuery)
           
 
Method Summary
 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()
           
 SimpleFeatureType getSchema()
          The schema for the child features of this collection.
 FeatureReader<SimpleFeatureType,SimpleFeature> reader()
           
 
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
 

Constructor Detail

ArcSdeFeatureCollection

public ArcSdeFeatureCollection(ArcSdeFeatureSource featureSource,
                               SimpleFeatureType queryType,
                               Query namedQuery)
                        throws IOException
Throws:
IOException
Method Detail

getSchema

public final SimpleFeatureType getSchema()
Description copied from interface: FeatureCollection
The schema for the child features of this collection.

There is a difference between getFeatureType() and getSchema()represents the LCD FeatureType that best represents the contents of this collection.

The method getSchema() is named for compatability with the geotools 2.0 API. In the Geotools 2.2 time frame we should be able to replace this method with a careful check of getFeatureType() and its attributes.

Specified by:
getSchema in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
Overrides:
getSchema in class DataFeatureCollection
Returns:
FeatureType describing the "common" schema to all child features of this collection
See Also:
FeatureCollection.getSchema()

getBounds

public final 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<SimpleFeatureType,SimpleFeature>
Specified by:
getBounds in class DataFeatureCollection
Returns:
An Envelope containing the total bounds of this collection.
See Also:
FeatureCollection.getBounds()

getCount

public final int getCount()
                   throws IOException
Specified by:
getCount in class DataFeatureCollection
Throws:
IOException

reader

public FeatureReader<SimpleFeatureType,SimpleFeature> reader()
                                                      throws IOException
Overrides:
reader in class DataFeatureCollection
Throws:
IOException


Copyright © 1996-2009 Geotools. All Rights Reserved.