|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.feature.FeatureCollectionWrapper
com.vividsolutions.jump.feature.IndexedFeatureCollection
public class IndexedFeatureCollection
An IndexedFeatureCollection creates a new collection which is backed by a FeatureCollection, but which is indexed for query purposes. In this implementation, Features cannot be added or removed (an Exception is thrown) and Features' Geometries should not be modified (otherwise they will be out of sync with the spatial index).
| Constructor Summary | |
|---|---|
IndexedFeatureCollection(FeatureCollection fc)
Constructs an IndexedFeatureCollection wrapping the given FeatureCollection and using the default spatial index. |
|
IndexedFeatureCollection(FeatureCollection fc,
com.vividsolutions.jts.index.SpatialIndex spatialIndex)
Constructs an IndexedFeatureCollection wrapping the given FeatureCollection and using the given empty spatial index. |
|
| Method Summary | |
|---|---|
void |
add(Feature feature)
Adds a feature to this collection. |
void |
addAll(java.util.Collection features)
Adds multiple features to this collection. |
java.util.List |
query(com.vividsolutions.jts.geom.Envelope env)
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. |
| Methods inherited from class com.vividsolutions.jump.feature.FeatureCollectionWrapper |
|---|
checkNotWrappingSameClass, clear, getEnvelope, getFeatureCollection, getFeatures, getFeatureSchema, getUltimateWrappee, getWrappee, hasWrapper, isEmpty, iterator, setFeatureCollection, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexedFeatureCollection(FeatureCollection fc)
public IndexedFeatureCollection(FeatureCollection fc,
com.vividsolutions.jts.index.SpatialIndex spatialIndex)
| Method Detail |
|---|
public void add(Feature feature)
FeatureCollection
add in interface FeatureCollectionadd in class FeatureCollectionWrapperfeature - a Feature to add to the end of this collectionpublic void remove(Feature feature)
FeatureCollection
remove in interface FeatureCollectionremove in class FeatureCollectionWrapperfeature - a Feature to remove from this collectionpublic java.util.List query(com.vividsolutions.jts.geom.Envelope env)
FeatureCollection
query in interface FeatureCollectionquery in class FeatureCollectionWrapperenv - the envelope to query against
public void addAll(java.util.Collection features)
FeatureCollection
addAll in interface FeatureCollectionaddAll in class FeatureCollectionWrapperpublic java.util.Collection remove(com.vividsolutions.jts.geom.Envelope env)
FeatureCollection
remove in interface FeatureCollectionremove in class FeatureCollectionWrapperpublic void removeAll(java.util.Collection features)
FeatureCollection
removeAll in interface FeatureCollectionremoveAll in class FeatureCollectionWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||