Class BasicSegmentString
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.
Inheritance
BasicSegmentString
Assembly: NetTopologySuite.dll
Syntax
public class BasicSegmentString : ISegmentString
Constructors
|
Improve this Doc
View Source
BasicSegmentString(Coordinate[], Object)
Creates a new segment string from a list of vertices.
Declaration
public BasicSegmentString(Coordinate[] pts, object data)
Parameters
Type |
Name |
Description |
Coordinate[] |
pts |
the vertices of the segment string
|
Object |
data |
the user-defined data of this segment string (may be null)
|
Properties
|
Improve this Doc
View Source
Context
Gets the user-defined data for this segment string.
Declaration
public object Context { get; set; }
Property Value
|
Improve this Doc
View Source
Coordinates
Declaration
public Coordinate[] Coordinates { get; }
Property Value
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
|
Improve this Doc
View Source
IsClosed
Declaration
public bool IsClosed { get; }
Property Value
|
Improve this Doc
View Source
Item[Int32]
Declaration
public LineSegment this[int index] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Methods
|
Improve this Doc
View Source
GetSegmentOctant(Int32)
Gets the octant of the segment starting at vertex index
Declaration
public Octants GetSegmentOctant(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
the index of the vertex starting the segment. Must not be the last index in the vertex list
|
Returns
Type |
Description |
Octants |
octant of the segment at the vertex
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
See Also