Package org.geotools.data.store
Class EmptyFeatureCollection
Object
DataFeatureCollection
EmptyFeatureCollection
- All Implemented Interfaces:
SimpleFeatureCollection
,FeatureCollection<SimpleFeatureType,
SimpleFeature>
-
Field Summary
Fields inherited from class DataFeatureCollection
id, listeners, schema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(SimpleFeature object) protected void
closeIterator
(Iterator close) Get the total bounds of this collection which is calculated by doing a union of the bounds of each feature inside of itint
getCount()
boolean
isValid()
protected Iterator<SimpleFeature>
Returns a FeatureWriterIterator, or FeatureReaderIterator over content.boolean
boolean
removeAll
(Collection collection) Methods inherited from class DataFeatureCollection
accepts, addAll, addAll, addListener, clear, close, close, contains, containsAll, features, fireChange, fireChange, fireChange, getID, getSchema, isEmpty, iterator, purge, reader, removeListener, retainAll, size, sort, subCollection, toArray, toArray, writer
-
Constructor Details
-
EmptyFeatureCollection
-
-
Method Details
-
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 interfaceFeatureCollection<SimpleFeatureType,
SimpleFeature> - Specified by:
getBounds
in classDataFeatureCollection
- Returns:
- An Envelope containing the total bounds of this collection.
-
getCount
- Specified by:
getCount
in classDataFeatureCollection
- Throws:
IOException
-
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 classDataFeatureCollection
- Returns:
- Iterator, should be closed closeIterator
-
closeIterator
- Overrides:
closeIterator
in classDataFeatureCollection
-
add
- Overrides:
add
in classDataFeatureCollection
-
remove
- Overrides:
remove
in classDataFeatureCollection
-
removeAll
- Overrides:
removeAll
in classDataFeatureCollection
-
isValid
public boolean isValid()
-