Table of Contents

Class BasicSegmentString

Namespace
NetTopologySuite.Noding
Assembly
NetTopologySuite.dll

Represents a read-only list of contiguous line segments. This can be used for detection of intersections or nodes. ISegmentStrings can carry a context object, which is useful for preserving topological or parentage information.

If adding nodes is required use NodedSegmentString.
public class BasicSegmentString : ISegmentString
Inheritance
BasicSegmentString
Implements
Inherited Members

Constructors

BasicSegmentString(Coordinate[], object)

Creates a new segment string from a list of vertices.

public BasicSegmentString(Coordinate[] pts, object data)

Parameters

pts Coordinate[]

the vertices of the segment string

data object

the user-defined data of this segment string (may be null)

See Also

Properties

Context

Gets the user-defined data for this segment string.

public object Context { get; set; }

Property Value

object
See Also

Coordinates

Points that make up ISegmentString

public Coordinate[] Coordinates { get; }

Property Value

Coordinate[]
See Also

Count

Size of Coordinate Sequence

public int Count { get; }

Property Value

int
See Also

IsClosed

States whether ISegmentString is closed

public bool IsClosed { get; }

Property Value

bool
See Also

this[int]

public LineSegment this[int index] { get; set; }

Parameters

index int

Property Value

LineSegment
See Also

Methods

GetSegmentOctant(int)

Gets the octant of the segment starting at vertex index

public Octants GetSegmentOctant(int index)

Parameters

index int

the index of the vertex starting the segment. Must not be the last index in the vertex list

Returns

Octants

octant of the segment at the vertex

See Also

ToString()

public override string ToString()

Returns

string
See Also

See Also