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, writerpublic EmptyFeatureCollection(SimpleFeatureType schema)
public ReferencedEnvelope getBounds()
FeatureCollectiongetBounds in interface FeatureCollection<SimpleFeatureType,SimpleFeature>getBounds in class DataFeatureCollectionpublic int getCount()
throws IOException
getCount in class DataFeatureCollectionIOExceptionprotected Iterator openIterator()
DataFeatureCollectionIf 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 DataFeatureCollectionprotected void closeIterator(Iterator close)
closeIterator in class DataFeatureCollectionpublic boolean add(SimpleFeature object)
add in class DataFeatureCollectionpublic boolean remove(Object object)
remove in class DataFeatureCollectionpublic boolean removeAll(Collection collection)
removeAll in class DataFeatureCollectionpublic boolean isValid()
Copyright © 1996–2019 Geotools. All rights reserved.