Search Results for

    Show / Hide Table of Contents

    Class DistanceToPoint

    Computes the Euclidean distance (L2 metric) from a Coordinate to a Geometry.

    Inheritance
    object
    DistanceToPoint
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Algorithm.Distance
    Assembly: NetTopologySuite.dll
    Syntax
    public static class DistanceToPoint
    Remarks

    Also computes two points on the geometry which are separated by the distance found.

    Methods

    | Edit this page View Source

    ComputeDistance(Geometry, Coordinate, PointPairDistance)

    Computes the Euclidean distance (L2 metric) from a Coordinate to a Geometry.

    Declaration
    public static void ComputeDistance(Geometry geom, Coordinate pt, PointPairDistance ptDist)
    Parameters
    Type Name Description
    Geometry geom

    The geometry

    Coordinate pt

    The Point

    PointPairDistance ptDist

    The PointPairDistance

    | Edit this page View Source

    ComputeDistance(LineSegment, Coordinate, PointPairDistance)

    Computes the Euclidean distance (L2 metric) from a Coordinate to a LineSegment.

    Declaration
    public static void ComputeDistance(LineSegment segment, Coordinate pt, PointPairDistance ptDist)
    Parameters
    Type Name Description
    LineSegment segment

    The LineSegment

    Coordinate pt

    The Point

    PointPairDistance ptDist

    The PointPairDistance

    | Edit this page View Source

    ComputeDistance(LineString, Coordinate, PointPairDistance)

    Computes the Euclidean distance (L2 metric) from a Coordinate to a LineString.

    Declaration
    public static void ComputeDistance(LineString line, Coordinate pt, PointPairDistance ptDist)
    Parameters
    Type Name Description
    LineString line

    The LineString

    Coordinate pt

    The Point

    PointPairDistance ptDist

    The PointPairDistance

    | Edit this page View Source

    ComputeDistance(Polygon, Coordinate, PointPairDistance)

    Computes the Euclidean distance (L2 metric) from a Coordinate to a Polygon.

    Declaration
    public static void ComputeDistance(Polygon poly, Coordinate pt, PointPairDistance ptDist)
    Parameters
    Type Name Description
    Polygon poly

    The Polygon

    Coordinate pt

    The Point

    PointPairDistance ptDist

    The PointPairDistance

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