Search Results for

    Show / Hide Table of Contents

    Class LineStringSnapper

    Snaps the vertices and segments of a LineString to a set of target snap vertices. A snap distance tolerance is used to control where snapping is performed.

    The implementation handles empty geometry and empty snap vertex sets.
    Inheritance
    object
    LineStringSnapper
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Operation.Overlay.Snap
    Assembly: NetTopologySuite.dll
    Syntax
    public class LineStringSnapper

    Constructors

    | Edit this page View Source

    LineStringSnapper(Coordinate[], double)

    Creates a new snapper using the given points as source points to be snapped.

    Declaration
    public LineStringSnapper(Coordinate[] srcPts, double snapTolerance)
    Parameters
    Type Name Description
    Coordinate[] srcPts
    double snapTolerance
    | Edit this page View Source

    LineStringSnapper(LineString, double)

    Creates a new snapper using the points in the given LineString as target snap points.

    Declaration
    public LineStringSnapper(LineString srcLine, double snapTolerance)
    Parameters
    Type Name Description
    LineString srcLine

    A LineString to snap (may be empty)

    double snapTolerance

    the snap tolerance to use

    Properties

    | Edit this page View Source

    AllowSnappingToSourceVertices

    Declaration
    public bool AllowSnappingToSourceVertices { get; set; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    SnapTo(Coordinate[])

    Snaps the vertices and segments of the source LineString to the given set of snap points.

    Declaration
    public Coordinate[] SnapTo(Coordinate[] snapPts)
    Parameters
    Type Name Description
    Coordinate[] snapPts

    the vertices to snap to

    Returns
    Type Description
    Coordinate[]

    list of the snapped points

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