Search Results for

    Show / Hide Table of Contents

    Class ExtractLineByLocation

    Extracts the subline of a linear Geometry between two LinearLocations on the line.

    Inheritance
    object
    ExtractLineByLocation
    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 ExtractLineByLocation

    Constructors

    | Edit this page View Source

    ExtractLineByLocation(Geometry)

    Initializes a new instance of the ExtractLineByLocation class.

    Declaration
    public ExtractLineByLocation(Geometry line)
    Parameters
    Type Name Description
    Geometry line

    Methods

    | Edit this page View Source

    Extract(Geometry, LinearLocation, LinearLocation)

    Computes the subline of a LineString between two LinearLocations on the line. If the start location is after the end location, the computed linear geometry has reverse orientation to the input line.

    Declaration
    public static Geometry Extract(Geometry line, LinearLocation start, LinearLocation end)
    Parameters
    Type Name Description
    Geometry line

    The line to use as the baseline.

    LinearLocation start

    The start location.

    LinearLocation end

    The end location.

    Returns
    Type Description
    Geometry

    The extracted subline.

    | Edit this page View Source

    Extract(LinearLocation, LinearLocation)

    Extracts a subline of the input. If end is minor that start, the linear geometry computed will be reversed.

    Declaration
    public Geometry Extract(LinearLocation start, LinearLocation end)
    Parameters
    Type Name Description
    LinearLocation start

    The start location.

    LinearLocation end

    The end location.

    Returns
    Type Description
    Geometry

    A linear geometry.

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