Class SegmentNodeList
- Namespace
- NetTopologySuite.Noding
- Assembly
- NetTopologySuite.dll
A list of the SegmentNodes present along a noded ISegmentString.
public class SegmentNodeList : IEnumerable<object>, IEnumerable
- Inheritance
-
SegmentNodeList
- Implements
- Inherited Members
Constructors
SegmentNodeList(NodedSegmentString)
Initializes a new instance of the SegmentNodeList class.
public SegmentNodeList(NodedSegmentString edge)
Parameters
edgeNodedSegmentStringThe edge.
Properties
Edge
public NodedSegmentString Edge { get; }
Property Value
Methods
Add(Coordinate, int)
Adds an intersection into the list, if it isn't already there. The input segmentIndex and dist are expected to be normalized.
public SegmentNode Add(Coordinate intPt, int segmentIndex)
Parameters
intPtCoordinatesegmentIndexint
Returns
- SegmentNode
The SegmentIntersection found or added.
AddSplitEdges(ICollection<ISegmentString>)
Creates new edges for all the edges that the intersections in this list split the parent edge into. Adds the edges to the provided argument list (this is so a single list can be used to accumulate all split edges for a set of ISegmentStrings).
public void AddSplitEdges(ICollection<ISegmentString> edgeList)
Parameters
edgeListICollection<ISegmentString>
GetEnumerator()
Returns an iterator of SegmentNodes.
public IEnumerator<object> GetEnumerator()
Returns
- IEnumerator<object>
An iterator of SegmentNodes.
GetSplitCoordinates()
Gets the list of coordinates for the fully noded segment string, including all original segment string vertices and vertices introduced by nodes in this list. Repeated coordinates are collapsed.
public Coordinate[] GetSplitCoordinates()
Returns
- Coordinate[]
An array of Coordinates
Write(StreamWriter)
public void Write(StreamWriter outstream)
Parameters
outstreamStreamWriter