org.geotools.data.store
Class EmptyFeatureCollection
java.lang.Object
org.geotools.data.store.DataFeatureCollection
org.geotools.data.store.EmptyFeatureCollection
- All Implemented Interfaces:
- FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
public class EmptyFeatureCollection
- extends DataFeatureCollection
Method Summary |
boolean |
add(org.opengis.feature.simple.SimpleFeature object)
Add object to this collection. |
protected void |
closeIterator(java.util.Iterator close)
|
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()
|
boolean |
isValid()
|
protected java.util.Iterator |
openIterator()
Returns a FeatureWriterIterator, or FeatureReaderIterator over content. |
boolean |
remove(java.lang.Object object)
|
boolean |
removeAll(java.util.Collection collection)
|
Methods inherited from class org.geotools.data.store.DataFeatureCollection |
accepts, accepts, addAll, addAll, addListener, clear, close, close, contains, containsAll, features, fireChange, fireChange, fireChange, getID, getSchema, isEmpty, iterator, purge, reader, 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 |
EmptyFeatureCollection
public EmptyFeatureCollection(org.opengis.feature.simple.SimpleFeatureType schema)
getBounds
public 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.
getCount
public int getCount()
throws java.io.IOException
- Specified by:
getCount
in class DataFeatureCollection
- Throws:
java.io.IOException
openIterator
protected java.util.Iterator openIterator()
- Description copied from class:
DataFeatureCollection
- Returns a FeatureWriterIterator, or FeatureReaderIterator over content.
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()!
- Overrides:
openIterator
in class DataFeatureCollection
- Returns:
- Iterator, should be closed closeIterator
closeIterator
protected void closeIterator(java.util.Iterator close)
- Overrides:
closeIterator
in class DataFeatureCollection
add
public boolean add(org.opengis.feature.simple.SimpleFeature object)
- Description copied from interface:
FeatureCollection
- Add object to this collection.
This method is often not impelmented for collections produced as the result of a query.
- Specified by:
add
in interface FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
- Overrides:
add
in class DataFeatureCollection
- Returns:
- true of the element was added
- See Also:
Collection.add(Object)
remove
public boolean remove(java.lang.Object object)
- Specified by:
remove
in interface FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
- Overrides:
remove
in class DataFeatureCollection
- See Also:
Collection.remove(Object)
removeAll
public boolean removeAll(java.util.Collection collection)
- Specified by:
removeAll
in interface FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
- Overrides:
removeAll
in class DataFeatureCollection
- See Also:
Collection.removeAll(Collection)
isValid
public boolean isValid()
Copyright © 1996-2010 Geotools. All Rights Reserved.