public interface SpatialIndex
A spatial index typically provides a primary filter for range rectangle queries. A secondary filter is required to test for exact intersection. The secondary filter may consist of other kinds of tests, such as testing other spatial relationships.
| Modifier and Type | Method and Description |
|---|---|
void |
insert(Envelope
Adds a spatial item with an extent specified by the given
Envelope to the index
|
List |
query(Envelope
Queries the index for all items whose extents intersect the given search
Envelope Note that some kinds of indexes may also return objects which do not in fact intersect the query envelope.
|
void |
query(Envelope
Queries the index for all items whose extents intersect the given search
Envelope, and applies an
ItemVisitor to them.
|
boolean |
remove(Envelope
Removes a single item from the tree.
|
void insert(EnvelopeitemEnv, Object item)
Envelope to the index
Listquery(Envelope searchEnv)
Envelope Note that some kinds of indexes may also return objects which do not in fact intersect the query envelope.
searchEnv - the envelope to query for
void query(EnvelopesearchEnv, ItemVisitor visitor)
Envelope, and applies an
ItemVisitor to them. Note that some kinds of indexes may also return objects which do not in fact intersect the query envelope.
searchEnv - the envelope to query for
visitor - a visitor object to apply to the items found