Search Results for

    Show / Hide Table of Contents

    Class TaggedLineString

    Represents a LineString which can be modified to a simplified shape. This class provides an attribute which specifies the minimum allowable length for the modified result.

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

    Constructors

    | Edit this page View Source

    TaggedLineString(LineString)

    Creates an instance of this class using the provided parentLine. The MinimumSize is set to 2 and PreserveEndpoint is true.

    Declaration
    [Obsolete]
    public TaggedLineString(LineString parentLine)
    Parameters
    Type Name Description
    LineString parentLine

    The LineString that is to be simplified.

    | Edit this page View Source

    TaggedLineString(LineString, int)

    Creates an instance of this class using the provided parentLine and minimumSize values. The value for IsRing is LineString.IsRing

    Declaration
    [Obsolete]
    public TaggedLineString(LineString parentLine, int minimumSize)
    Parameters
    Type Name Description
    LineString parentLine

    The LineString that is to be simplified.

    int minimumSize

    The number of vertices to must be kept.

    | Edit this page View Source

    TaggedLineString(LineString, int, bool)

    Creates an instance of this class using the provided parentLine and minimumSize values.

    Declaration
    public TaggedLineString(LineString parentLine, int minimumSize, bool isRing)
    Parameters
    Type Name Description
    LineString parentLine

    The LineString that is to be simplified.

    int minimumSize

    The number of vertices to must be kept.

    bool isRing

    A flag indicating if the parentLine forms a ring

    Properties

    | Edit this page View Source

    Count

    Gets a value indicating the number of points of the Parent line.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    IsRing

    Gets a value indicating if the endpoints are to be preserved.

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

    MinimumSize

    Declaration
    public int MinimumSize { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Parent

    Declaration
    public LineString Parent { get; }
    Property Value
    Type Description
    LineString
    | Edit this page View Source

    ParentCoordinates

    Declaration
    public Coordinate[] ParentCoordinates { get; }
    Property Value
    Type Description
    Coordinate[]
    | Edit this page View Source

    ResultCoordinates

    Declaration
    public Coordinate[] ResultCoordinates { get; }
    Property Value
    Type Description
    Coordinate[]
    | Edit this page View Source

    ResultSize

    Declaration
    public int ResultSize { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Segments

    Declaration
    public TaggedLineSegment[] Segments { get; }
    Property Value
    Type Description
    TaggedLineSegment[]

    Methods

    | Edit this page View Source

    AddToResult(LineSegment)

    Add a simplified segment to the result. This assumes simplified segments are computed in the order they occur in the line.

    Declaration
    public void AddToResult(LineSegment seg)
    Parameters
    Type Name Description
    LineSegment seg

    The result segment to add.

    | Edit this page View Source

    AsLineString()

    Declaration
    public LineString AsLineString()
    Returns
    Type Description
    LineString
    | Edit this page View Source

    AsLinearRing()

    Declaration
    public LinearRing AsLinearRing()
    Returns
    Type Description
    LinearRing
    | Edit this page View Source

    GetComponentPoint()

    Gets a Coordinate of the Parent line.

    Declaration
    public Coordinate GetComponentPoint()
    Returns
    Type Description
    Coordinate

    A Coordinate of the Parent line.

    | Edit this page View Source

    GetCoordinate(int)

    Gets the i'th Coordinate of Parent line.

    Declaration
    public Coordinate GetCoordinate(int i)
    Parameters
    Type Name Description
    int i

    The index of the coordinate to get

    Returns
    Type Description
    Coordinate

    The i'th Coordinate of Parent line.

    | Edit this page View Source

    GetResultSegment(int)

    Gets a segment of the result list. Negative indexes can be used to retrieve from the end of the list.

    Declaration
    public LineSegment GetResultSegment(int i)
    Parameters
    Type Name Description
    int i

    The segment index to retrieve

    Returns
    Type Description
    LineSegment

    The result segment

    | Edit this page View Source

    GetSegment(int)

    Declaration
    public TaggedLineSegment GetSegment(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    TaggedLineSegment
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX