Class VertexSequencePackedRtree
- Namespace
- NetTopologySuite.Index
- Assembly
- NetTopologySuite.dll
A semi-static spatial index for points which occur in a spatially-coherent sequence. In particular, this is suitable for indexing the vertices of a {@link LineString} or {@link Polygon} ring.
The index is constructed in a batch fashion on a given sequence of coordinates. Coordinates can be removed via the {@link #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.public class VertexSequencePackedRtree- Inheritance
- 
      
      VertexSequencePackedRtree
- Inherited Members
Constructors
VertexSequencePackedRtree(Coordinate[])
Creates a new tree over the given sequence of coordinates. The sequence should be spatially coherent to provide query performance.
public VertexSequencePackedRtree(Coordinate[] pts)Parameters
- ptsCoordinate[]
- A sequence of points 
Methods
GetBounds()
public Envelope[] GetBounds()Returns
- Envelope[]
Query(Envelope)
Queries the index to find all items which intersect an extent. The query result is a list of the indices of input coordinates which intersect the extent.
public int[] Query(Envelope queryEnv)Parameters
- queryEnvEnvelope
- The query extent 
Returns
- int[]
- An array of the indices of the input coordinates 
RemoveAt(int)
Removes the input item at the given index from the spatial index.
public void RemoveAt(int index)Parameters
- indexint
- Index the index of the item in the input 
Remarks
This does not change the underlying coordinate array.