Interface SpatialIndex
public interface SpatialIndex
The basic operations supported by classes
implementing spatial index algorithms.
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.
- Version:
- 1.7
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a spatial item with an extent specified by the givenEnvelopeto the indexQueries the index for all items whose extents intersect the given searchEnvelopeNote that some kinds of indexes may also return objects which do not in fact intersect the query envelope.voidquery(Envelope searchEnv, ItemVisitor visitor) Queries the index for all items whose extents intersect the given searchEnvelope, and applies anItemVisitorto them.booleanRemoves a single item from the tree.
-
Method Details
-
insert
-
query
Queries the index for all items whose extents intersect the given searchEnvelopeNote that some kinds of indexes may also return objects which do not in fact intersect the query envelope.- Parameters:
searchEnv- the envelope to query for- Returns:
- a list of the items found by the query
-
query
Queries the index for all items whose extents intersect the given searchEnvelope, and applies anItemVisitorto them. Note that some kinds of indexes may also return objects which do not in fact intersect the query envelope.- Parameters:
searchEnv- the envelope to query forvisitor- a visitor object to apply to the items found
-
remove
-