public class CompositeFeatureCollection extends DataFeatureCollection
This feature collection is used for wfs feature collections which can be made up of features from different schemas.
id, listeners, schema| Constructor and Description |
|---|
CompositeFeatureCollection(List<FeatureCollection> collections) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(Collection arg0)
Optimized implementation of addAll that recognizes the use of collections obtained with
subCollection( filter ).
|
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() |
FeatureId |
getIdentifier() |
SimpleFeatureType |
getSchema()
The schema for the child feature members of this collection.
|
protected Iterator<SimpleFeature> |
openIterator()
Returns a FeatureWriterIterator, or FeatureReaderIterator over content.
|
<T> T[] |
toArray(T[] arg0) |
accepts, add, addAll, addListener, clear, close, close, closeIterator, contains, containsAll, features, fireChange, fireChange, fireChange, getID, isEmpty, iterator, purge, reader, remove, removeAll, removeListener, retainAll, size, sort, subCollection, toArray, writerpublic CompositeFeatureCollection(List<FeatureCollection> collections)
protected Iterator<SimpleFeature> openIterator() throws IOException
DataFeatureCollectionIf you have a way to tell that you are readonly please subclass with a less hardcore check - this implementations catches a UnsupportedOpperationsException from wrtier()!
openIterator in class DataFeatureCollectionIOExceptionpublic SimpleFeatureType getSchema()
FeatureCollectionRepresents the most general FeatureType in common to all the features in this collection.
getSchema in interface FeatureCollection<SimpleFeatureType,SimpleFeature>getSchema in class DataFeatureCollectionpublic ReferencedEnvelope getBounds()
FeatureCollectiongetBounds in interface FeatureCollection<SimpleFeatureType,SimpleFeature>getBounds in class DataFeatureCollectionpublic int getCount()
throws IOException
getCount in class DataFeatureCollectionIOExceptionpublic boolean addAll(Collection arg0)
DataFeatureCollectionThis method is constructed by either:
addAll in class DataFeatureCollectionpublic <T> T[] toArray(T[] arg0)
toArray in interface FeatureCollection<SimpleFeatureType,SimpleFeature>toArray in class DataFeatureCollectionCollection.toArray(Object[])public FeatureId getIdentifier()
Copyright © 1996–2019 Geotools. All rights reserved.