org.geotools.arcsde.data
Class ArcSdeFeatureCollection

java.lang.Object
  extended by org.geotools.data.store.DataFeatureCollection
      extended by org.geotools.arcsde.data.ArcSdeFeatureCollection
All Implemented Interfaces:
FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.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
Version:
$Id: ArcSdeFeatureCollection.java 32195 2009-01-09 19:00:35Z groldan $
Author:
Gabriel Roldan (TOPP)
See Also:
FeatureCollection

Field Summary
 
Fields inherited from class org.geotools.data.store.DataFeatureCollection
id, listeners, schema
 
Constructor Summary
ArcSdeFeatureCollection(ArcSdeFeatureSource featureSource, org.opengis.feature.simple.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()
           
 org.opengis.feature.simple.SimpleFeatureType getSchema()
          The schema for the child features of this collection.
 FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader()
           
 
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
 

Constructor Detail

ArcSdeFeatureCollection

public ArcSdeFeatureCollection(ArcSdeFeatureSource featureSource,
                               org.opengis.feature.simple.SimpleFeatureType queryType,
                               Query namedQuery)
                        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getSchema

public final org.opengis.feature.simple.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<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.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<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:
FeatureCollection.getBounds()

getCount

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

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


Copyright © 1996-2010 Geotools. All Rights Reserved.