public class EmptyFeatureCollection extends DataFeatureCollection
id, listeners, schema
Constructor and Description |
---|
EmptyFeatureCollection(SimpleFeatureType schema) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(SimpleFeature object) |
protected void |
closeIterator(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 Iterator |
openIterator()
Returns a FeatureWriterIterator, or FeatureReaderIterator over content.
|
boolean |
remove(Object object) |
boolean |
removeAll(Collection collection) |
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
public EmptyFeatureCollection(SimpleFeatureType schema)
public ReferencedEnvelope getBounds()
FeatureCollection
getBounds
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
getBounds
in class DataFeatureCollection
public int getCount() throws IOException
getCount
in class DataFeatureCollection
IOException
protected Iterator openIterator()
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
protected void closeIterator(Iterator close)
closeIterator
in class DataFeatureCollection
public boolean add(SimpleFeature object)
add
in class DataFeatureCollection
public boolean remove(Object object)
remove
in class DataFeatureCollection
public boolean removeAll(Collection collection)
removeAll
in class DataFeatureCollection
public boolean isValid()
Copyright © 1996–2019 Geotools. All rights reserved.