public abstract class FeatureCollectionWrapper extends Object implements FeatureCollection
| Constructor and Description |
|---|
FeatureCollectionWrapper(FeatureCollection fc)
Constructs a FeatureCollectionWrapper that delegates to the given FeatureCollection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Feature feature)
Adds a feature to this collection.
|
void |
addAll(Collection features)
Adds multiple features to this collection.
|
void |
checkNotWrappingSameClass()
Throws an AssertionFailedException if this FeatureCollectionWrapper
wraps (directly or indirectly) another FeatureCollectionWrapper having
the same class (or descendant class thereof).
|
void |
clear()
Removes all features from this collection.
|
com.vividsolutions.jts.geom.Envelope |
getEnvelope()
Returns the bounds of this collection.
|
List |
getFeatures()
Returns an unmodifiable List of the features in this collection
|
FeatureSchema |
getFeatureSchema()
Returns information about this FeatureCollection
|
FeatureCollection |
getUltimateWrappee()
Returns the non-wrapper FeatureCollection wrapped by this wrapper and
possibly by other wrappers in-between.
|
FeatureCollection |
getWrappee()
Returns the FeatureCollection that this wrapper delegates to (possibly
another FeatureCollectionWrapper).
|
boolean |
hasWrapper(Class c)
Returns whether this FeatureCollectionWrapper (or a
FeatureCollectionWrapper that it wraps, directly or indirectly) is an
instance of the given class (or one of its descendants).
|
boolean |
isEmpty()
Returns whether this collection has no features.
|
Iterator |
iterator()
Returns an Iterator over the features
|
List |
query(com.vividsolutions.jts.geom.Envelope envelope)
A quick search for features, using an envelope comparison.
|
Collection |
remove(com.vividsolutions.jts.geom.Envelope env)
Removes the features which intersect the given envelope
|
void |
remove(Feature feature)
Removes a feature from this collection.
|
void |
removeAll(Collection features)
Removes multiple features from this collection.
|
int |
size()
Returns the number of features in this collection.
|
public FeatureCollectionWrapper(FeatureCollection fc)
public FeatureCollection getUltimateWrappee()
getWrappee()public void checkNotWrappingSameClass()
public Collection remove(com.vividsolutions.jts.geom.Envelope env)
FeatureCollectionremove in interface FeatureCollectionpublic boolean hasWrapper(Class c)
public FeatureCollection getWrappee()
getUltimateWrappee()public FeatureSchema getFeatureSchema()
FeatureCollectiongetFeatureSchema in interface FeatureCollectionpublic com.vividsolutions.jts.geom.Envelope getEnvelope()
FeatureCollectiongetEnvelope in interface FeatureCollectionpublic int size()
FeatureCollectionsize in interface FeatureCollectionpublic boolean isEmpty()
FeatureCollectionisEmpty in interface FeatureCollectionpublic List getFeatures()
FeatureCollectiongetFeatures in interface FeatureCollectionpublic Iterator iterator()
FeatureCollectioniterator in interface FeatureCollectionpublic List query(com.vividsolutions.jts.geom.Envelope envelope)
FeatureCollectionquery in interface FeatureCollectionenvelope - the envelope to query againstpublic void add(Feature feature)
FeatureCollectionadd in interface FeatureCollectionfeature - a Feature to add to the end of this collectionpublic void remove(Feature feature)
FeatureCollectionremove in interface FeatureCollectionfeature - a Feature to remove from this collectionpublic void addAll(Collection features)
FeatureCollectionaddAll in interface FeatureCollectionpublic void removeAll(Collection features)
FeatureCollectionremoveAll in interface FeatureCollectionpublic void clear()
FeatureCollectionclear in interface FeatureCollectionCopyright © 2015. All rights reserved.