Search Results for

    Show / Hide Table of Contents

    Class LinearGeometryBuilder

    Builds a linear geometry (LineString or MultiLineString) incrementally (point-by-point).

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

    Constructors

    | Edit this page View Source

    LinearGeometryBuilder(GeometryFactory)

    Creates an instance of this class.

    Declaration
    public LinearGeometryBuilder(GeometryFactory geomFact)
    Parameters
    Type Name Description
    GeometryFactory geomFact

    The geometry factory to use.

    Properties

    | Edit this page View Source

    FixInvalidLines

    Allows invalid lines to be fixed rather than causing Exceptions. An invalid line is one which has only one unique point.

    Declaration
    public bool FixInvalidLines { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IgnoreInvalidLines

    Allows invalid lines to be ignored rather than causing Exceptions. An invalid line is one which has only one unique point.

    Declaration
    public bool IgnoreInvalidLines { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    LastCoordinate

    Declaration
    public Coordinate LastCoordinate { get; }
    Property Value
    Type Description
    Coordinate

    Methods

    | Edit this page View Source

    Add(Coordinate)

    Adds a point to the current line.

    Declaration
    public void Add(Coordinate pt)
    Parameters
    Type Name Description
    Coordinate pt

    The Coordinate to add.

    | Edit this page View Source

    Add(Coordinate, bool)

    Adds a point to the current line.

    Declaration
    public void Add(Coordinate pt, bool allowRepeatedPoints)
    Parameters
    Type Name Description
    Coordinate pt

    The Coordinate to add.

    bool allowRepeatedPoints

    If true, allows the insertions of repeated points.

    | Edit this page View Source

    EndLine()

    Terminate the current LineString.

    Declaration
    public void EndLine()
    | Edit this page View Source

    GetGeometry()

    Builds and returns the Geometry.

    Declaration
    public Geometry GetGeometry()
    Returns
    Type Description
    Geometry
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX