Search Results for

    Show / Hide Table of Contents

    Class LengthIndexOfPoint

    Inheritance
    object
    LengthIndexOfPoint
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.LinearReferencing
    Assembly: NetTopologySuite.dll
    Syntax
    public class LengthIndexOfPoint

    Constructors

    | Edit this page View Source

    LengthIndexOfPoint(Geometry)

    Initializes a new instance of the LengthIndexOfPoint class.

    Declaration
    public LengthIndexOfPoint(Geometry linearGeom)
    Parameters
    Type Name Description
    Geometry linearGeom

    A linear geometry.

    Methods

    | Edit this page View Source

    IndexOf(Coordinate)

    Find the nearest location along a linear Geometry to a given point.

    Declaration
    public double IndexOf(Coordinate inputPt)
    Parameters
    Type Name Description
    Coordinate inputPt

    The coordinate to locate.

    Returns
    Type Description
    double

    The location of the nearest point.

    | Edit this page View Source

    IndexOf(Geometry, Coordinate)

    Declaration
    public static double IndexOf(Geometry linearGeom, Coordinate inputPt)
    Parameters
    Type Name Description
    Geometry linearGeom
    Coordinate inputPt
    Returns
    Type Description
    double
    | Edit this page View Source

    IndexOfAfter(Coordinate, double)

    Finds the nearest index along the linear Geometry to a given Coordinate after the specified minimum index. If possible the location returned will be strictly greater than the minIndex. If this is not possible, the value returned will equal minIndex. (An example where this is not possible is when minIndex = [end of line] ).

    Declaration
    public double IndexOfAfter(Coordinate inputPt, double minIndex)
    Parameters
    Type Name Description
    Coordinate inputPt

    The coordinate to locate.

    double minIndex

    The minimum location for the point location.

    Returns
    Type Description
    double

    The location of the nearest point.

    | Edit this page View Source

    IndexOfAfter(Geometry, Coordinate, double)

    Declaration
    public static double IndexOfAfter(Geometry linearGeom, Coordinate inputPt, double minIndex)
    Parameters
    Type Name Description
    Geometry linearGeom
    Coordinate inputPt
    double minIndex
    Returns
    Type Description
    double
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX