Class 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 aSampleDataAccess.- Since:
- 2.6
- Author:
- Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class AbstractListmodCount
 
- 
 - 
Constructor SummaryConstructors Constructor Description SampleDataAccessFeatureCollection()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccepts(FeatureVisitor visitor, ProgressListener progress)Visit the contents of a feature collection.FeatureIterator<Feature>features()Get an iterator over the features.ReferencedEnvelopegetBounds()Not yet implemented.StringgetID()Not yet implemented.FeatureTypegetSchema()Return type of features.FeatureCollection<FeatureType,Feature>sort(SortBy order)Unsupported operation.FeatureCollection<FeatureType,Feature>subCollection(Filter filter)Unsupported operation.- 
Methods inherited from class ArrayListadd, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
 - 
Methods inherited from class AbstractCollectioncontainsAll, toString
 - 
Methods inherited from interface CollectionparallelStream, stream, toArray
 - 
Methods inherited from interface FeatureCollectioncontains, containsAll, isEmpty, size, toArray, toArray
 - 
Methods inherited from interface ListcontainsAll
 
- 
 
- 
- 
- 
Method Detail- 
acceptspublic void accepts(FeatureVisitor visitor, ProgressListener progress) throws IOException Description copied from interface:FeatureCollectionVisit 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:
- acceptsin 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.geotools.api.feature.FeatureVisitor, org.geotools.api.util.ProgressListener)
 
 - 
featurespublic FeatureIterator<Feature> features() Get an iterator over the features.- Specified by:
- featuresin interface- FeatureCollection<FeatureType,Feature>
- Returns:
- A FeatureIterator.
- See Also:
- FeatureCollection.features()
 
 - 
getBoundspublic ReferencedEnvelope getBounds() Not yet implemented.- Specified by:
- getBoundsin interface- FeatureCollection<FeatureType,Feature>
- Returns:
- An Envelope containing the total bounds of this collection.
- See Also:
- FeatureCollection.getBounds()
 
 - 
getIDpublic String getID() Not yet implemented.- Specified by:
- getIDin interface- FeatureCollection<FeatureType,Feature>
- See Also:
- FeatureCollection.getID()
 
 - 
getSchemapublic FeatureType getSchema() Return type of features.- Specified by:
- getSchemain interface- FeatureCollection<FeatureType,Feature>
- Returns:
- FeatureType describing the "common" schema to all child features of this collection
- See Also:
- FeatureCollection.getSchema()
 
 - 
sortpublic FeatureCollection<FeatureType,Feature> sort(SortBy order) Unsupported operation.- Specified by:
- sortin interface- FeatureCollection<FeatureType,Feature>
- Parameters:
- order- Sort order
- Returns:
- FeatureCollection sorted in the indicated order
- See Also:
- FeatureCollection.sort(org.geotools.api.filter.sort.SortBy)
 
 - 
subCollectionpublic FeatureCollection<FeatureType,Feature> subCollection(Filter filter) Unsupported operation.- Specified by:
- subCollectionin interface- FeatureCollection<FeatureType,Feature>
- Returns:
- SimpleFeatureCollection identified as subset.
- See Also:
- FeatureCollection.subCollection(org.geotools.api.filter.Filter)
 
 
- 
 
-