Search Results for

    Show / Hide Table of Contents

    Class VertexSequencePackedRtree

    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.
    Inheritance
    object
    VertexSequencePackedRtree
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Index
    Assembly: NetTopologySuite.dll
    Syntax
    public class VertexSequencePackedRtree

    Constructors

    | Edit this page View Source

    VertexSequencePackedRtree(Coordinate[])

    Creates a new tree over the given sequence of coordinates. The sequence should be spatially coherent to provide query performance.

    Declaration
    public VertexSequencePackedRtree(Coordinate[] pts)
    Parameters
    Type Name Description
    Coordinate[] pts

    A sequence of points

    Methods

    | Edit this page View Source

    GetBounds()

    Declaration
    public Envelope[] GetBounds()
    Returns
    Type Description
    Envelope[]
    | Edit this page View Source

    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.

    Declaration
    public int[] Query(Envelope queryEnv)
    Parameters
    Type Name Description
    Envelope queryEnv

    The query extent

    Returns
    Type Description
    int[]

    An array of the indices of the input coordinates

    | Edit this page View Source

    RemoveAt(int)

    Removes the input item at the given index from the spatial index.

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    int index

    Index the index of the item in the input

    Remarks

    This does not change the underlying coordinate array.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX