|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.store.DataFeatureCollection
org.geotools.wfs.CompositeFeatureCollection
public class CompositeFeatureCollection
Wraps multiple feature collections into a single.
This feature collection is used for wfs feature collections which can be made up of features from different schemas.
Field Summary |
---|
Fields inherited from class org.geotools.data.store.DataFeatureCollection |
---|
id, listeners, schema |
Constructor Summary | |
---|---|
CompositeFeatureCollection(java.util.List collections)
|
Method Summary | |
---|---|
boolean |
addAll(java.util.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()
|
org.opengis.filter.identity.FeatureId |
getIdentifier()
|
org.opengis.feature.simple.SimpleFeatureType |
getSchema()
The schema for the child features of this collection. |
protected java.util.Iterator |
openIterator()
Returns a FeatureWriterIterator, or FeatureReaderIterator over content. |
boolean |
removeAll(java.util.Collection arg0)
|
boolean |
retainAll(java.util.Collection arg0)
|
java.lang.Object[] |
toArray(java.lang.Object[] arg0)
|
Methods inherited from class org.geotools.data.store.DataFeatureCollection |
---|
accepts, accepts, add, addAll, addListener, clear, close, close, closeIterator, contains, containsAll, features, fireChange, fireChange, fireChange, getID, isEmpty, iterator, purge, reader, remove, removeListener, size, sort, sort, subCollection, toArray, writer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeFeatureCollection(java.util.List collections)
Method Detail |
---|
protected java.util.Iterator openIterator() throws java.io.IOException
DataFeatureCollection
If 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 DataFeatureCollection
java.io.IOException
public org.opengis.feature.simple.SimpleFeatureType getSchema()
FeatureCollection
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.
getSchema
in interface FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
getSchema
in class DataFeatureCollection
public ReferencedEnvelope getBounds()
FeatureCollection
getBounds
in interface FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
getBounds
in class DataFeatureCollection
public int getCount() throws java.io.IOException
getCount
in class DataFeatureCollection
java.io.IOException
public boolean addAll(java.util.Collection arg0)
DataFeatureCollection
This method is constructed by either:
addAll
in interface FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
addAll
in class DataFeatureCollection
Collection.addAll(Collection)
public boolean removeAll(java.util.Collection arg0)
removeAll
in interface FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
removeAll
in class DataFeatureCollection
Collection.removeAll(Collection)
public boolean retainAll(java.util.Collection arg0)
retainAll
in interface FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
retainAll
in class DataFeatureCollection
Collection.retainAll(Collection)
public java.lang.Object[] toArray(java.lang.Object[] arg0)
toArray
in interface FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
toArray
in class DataFeatureCollection
Collection.toArray(Object[])
public org.opengis.filter.identity.FeatureId getIdentifier()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |