org.geotools.data
Class SampleDataAccessFeatureCollection

Object
  extended by AbstractCollection<E>
      extended by AbstractList<E>
          extended by ArrayList<Feature>
              extended by SampleDataAccessFeatureCollection
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Feature>, Collection<Feature>, List<Feature>, RandomAccess, FeatureCollection<FeatureType,Feature>

public class SampleDataAccessFeatureCollection
extends ArrayList<Feature>
implements FeatureCollection<FeatureType,Feature>

Collection of features from a SampleDataAccess.

Since:
2.6
Author:
Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class AbstractList
modCount
 
Constructor Summary
SampleDataAccessFeatureCollection()
           
 
Method Summary
 void accepts(FeatureVisitor visitor, ProgressListener progress)
          Visit the contents of a feature collection.
 FeatureIterator<Feature> features()
          Get an iterator over the features.
 ReferencedEnvelope getBounds()
          Not yet implemented.
 String getID()
          Not yet implemented.
 FeatureType getSchema()
          Return type of features.
 FeatureCollection<FeatureType,Feature> sort(SortBy order)
          Unsupported operation.
 FeatureCollection<FeatureType,Feature> subCollection(Filter filter)
          Unsupported operation.
 
Methods inherited from class ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface FeatureCollection
contains, containsAll, isEmpty, size, toArray, toArray
 
Methods inherited from interface List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

SampleDataAccessFeatureCollection

public SampleDataAccessFeatureCollection()
Method Detail

accepts

public void accepts(FeatureVisitor visitor,
                    ProgressListener progress)
             throws IOException
Description copied from interface: FeatureCollection
Visit the contents of a feature collection.

The order of traversal is dependent on the FeatureCollection implementation; some collections are able to make efficient use of an internal index in order to quickly visit features located in the same region.

Specified by:
accepts in interface FeatureCollection<FeatureType,Feature>
Parameters:
visitor - Closure applied to each feature in turn.
progress - Used to report progress, may be used to interrupt the operation
Throws:
IOException
See Also:
FeatureCollection.accepts(org.opengis.feature.FeatureVisitor, org.opengis.util.ProgressListener)

features

public FeatureIterator<Feature> features()
Get an iterator over the features.

Specified by:
features in interface FeatureCollection<FeatureType,Feature>
Returns:
A FeatureIterator.
See Also:
FeatureCollection.features()

getBounds

public ReferencedEnvelope getBounds()
Not yet implemented.

Specified by:
getBounds in interface FeatureCollection<FeatureType,Feature>
Returns:
An Envelope containing the total bounds of this collection.
See Also:
FeatureCollection.getBounds()

getID

public String getID()
Not yet implemented.

Specified by:
getID in interface FeatureCollection<FeatureType,Feature>
See Also:
FeatureCollection.getID()

getSchema

public FeatureType getSchema()
Return type of features.

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

sort

public FeatureCollection<FeatureType,Feature> sort(SortBy order)
Unsupported operation.

Specified by:
sort in interface FeatureCollection<FeatureType,Feature>
Parameters:
order - Sort order
Returns:
FeatureCollection sorted in the indicated order
See Also:
FeatureCollection.sort(org.opengis.filter.sort.SortBy)

subCollection

public FeatureCollection<FeatureType,Feature> subCollection(Filter filter)
Unsupported operation.

Specified by:
subCollection in interface FeatureCollection<FeatureType,Feature>
Returns:
SimpleFeatureCollection identified as subset.
See Also:
FeatureCollection.subCollection(org.opengis.filter.Filter)


Copyright © 1996-2014 Geotools. All Rights Reserved.