public class VertexSequencePackedRtree extends Object
LineString
or Polygon
ring.
The index is constructed in a batch fashion on a given sequence of coordinates.
Coordinates can be removed via the remove(int)
method.
Note that this index queries only the individual points of the input coordinate sequence, not any line segments which might be lie between them.
The input coordinate array is read-only, and is not changed when vertices are removed.
Constructor and Description |
---|
VertexSequencePackedRtree(Coordinate[] pts)
Creates a new tree over the given sequence of coordinates.
|
Modifier and Type | Method and Description |
---|---|
Envelope[] |
getBounds() |
int[] |
query(Envelope queryEnv)
Queries the index to find all items which intersect an extent.
|
void |
remove(int index)
Removes the input item at the given index from the spatial index.
|
public VertexSequencePackedRtree(Coordinate[] pts)
pts
- a sequence of pointspublic Envelope[] getBounds()
public int[] query(Envelope queryEnv)
queryEnv
- the query extentpublic void remove(int index)
index
- the index of the item in the inputCopyright © 2022. All rights reserved.