public class DynamicFeatureCollection extends java.lang.Object implements FeatureCollection
Constructor and Description |
---|
DynamicFeatureCollection(ConnectionDescriptor connectionDescriptor,
ConnectionManager connectionManager,
FilterQuery spatialQuery) |
Modifier and Type | Method and Description |
---|---|
void |
add(Feature feature)
Adds a feature to this collection.
|
void |
addAll(java.util.Collection features)
Adds multiple features to this collection.
|
void |
clear()
Removes all features from this collection.
|
com.vividsolutions.jts.geom.Envelope |
getEnvelope()
Returns the bounds of this collection.
|
java.util.List |
getFeatures()
Returns an unmodifiable List of the features in this collection
|
FeatureSchema |
getFeatureSchema()
Returns information about this FeatureCollection
|
boolean |
isEmpty()
Returns whether this collection has no features.
|
java.util.Iterator |
iterator()
Returns an Iterator over the features
|
java.util.List |
query(com.vividsolutions.jts.geom.Envelope envelope)
A quick search for features, using an envelope comparison.
|
java.util.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(java.util.Collection features)
Removes multiple features from this collection.
|
void |
setFeatureLimit(java.lang.Integer featureLimit) |
int |
size()
Returns the number of features in this collection.
|
public DynamicFeatureCollection(ConnectionDescriptor connectionDescriptor, ConnectionManager connectionManager, FilterQuery spatialQuery)
public void setFeatureLimit(java.lang.Integer featureLimit)
public FeatureSchema getFeatureSchema()
FeatureCollection
getFeatureSchema
in interface FeatureCollection
public java.util.List query(com.vividsolutions.jts.geom.Envelope envelope)
FeatureCollection
query
in interface FeatureCollection
envelope
- the envelope to query againstpublic void add(Feature feature)
FeatureCollection
add
in interface FeatureCollection
feature
- a Feature to add to the end of this collectionpublic void addAll(java.util.Collection features)
FeatureCollection
addAll
in interface FeatureCollection
public void removeAll(java.util.Collection features)
FeatureCollection
removeAll
in interface FeatureCollection
public void remove(Feature feature)
FeatureCollection
remove
in interface FeatureCollection
feature
- a Feature to remove from this collectionpublic void clear()
FeatureCollection
clear
in interface FeatureCollection
public java.util.Collection remove(com.vividsolutions.jts.geom.Envelope env)
FeatureCollection
remove
in interface FeatureCollection
public com.vividsolutions.jts.geom.Envelope getEnvelope()
FeatureCollection
getEnvelope
in interface FeatureCollection
FeatureCollection.getEnvelope()
public int size()
FeatureCollection
size
in interface FeatureCollection
public boolean isEmpty()
FeatureCollection
isEmpty
in interface FeatureCollection
public java.util.List getFeatures()
FeatureCollection
getFeatures
in interface FeatureCollection
public java.util.Iterator iterator()
FeatureCollection
iterator
in interface FeatureCollection