Package org.geotools.data.store
Class EmptyFeatureCollection
- Object
-
- DataFeatureCollection
-
- EmptyFeatureCollection
-
- All Implemented Interfaces:
SimpleFeatureCollection,FeatureCollection<SimpleFeatureType,SimpleFeature>
public class EmptyFeatureCollection extends DataFeatureCollection
-
-
Field Summary
-
Fields inherited from class DataFeatureCollection
id, listeners, schema
-
-
Constructor Summary
Constructors Constructor Description EmptyFeatureCollection(SimpleFeatureType schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(SimpleFeature object)protected voidcloseIterator(Iterator close)ReferencedEnvelopegetBounds()Get the total bounds of this collection which is calculated by doing a union of the bounds of each feature inside of itintgetCount()booleanisValid()protected Iterator<SimpleFeature>openIterator()Returns a FeatureWriterIterator, or FeatureReaderIterator over content.booleanremove(Object object)booleanremoveAll(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 Detail
-
EmptyFeatureCollection
public EmptyFeatureCollection(SimpleFeatureType schema)
-
-
Method Detail
-
getBounds
public ReferencedEnvelope getBounds()
Description copied from interface:FeatureCollectionGet the total bounds of this collection which is calculated by doing a union of the bounds of each feature inside of it- Specified by:
getBoundsin interfaceFeatureCollection<SimpleFeatureType,SimpleFeature>- Specified by:
getBoundsin classDataFeatureCollection- Returns:
- An Envelope containing the total bounds of this collection.
-
getCount
public int getCount() throws IOException- Specified by:
getCountin classDataFeatureCollection- Throws:
IOException
-
openIterator
protected Iterator<SimpleFeature> openIterator()
Description copied from class:DataFeatureCollectionReturns 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:
openIteratorin classDataFeatureCollection- Returns:
- Iterator, should be closed closeIterator
-
closeIterator
protected void closeIterator(Iterator close)
- Overrides:
closeIteratorin classDataFeatureCollection
-
add
public boolean add(SimpleFeature object)
- Overrides:
addin classDataFeatureCollection
-
remove
public boolean remove(Object object)
- Overrides:
removein classDataFeatureCollection
-
removeAll
public boolean removeAll(Collection collection)
- Overrides:
removeAllin classDataFeatureCollection
-
isValid
public boolean isValid()
-
-