Class SegmentNodeList
A list of the SegmentNodes present along a noded ISegmentString.
Inherited Members
Namespace: NetTopologySuite.Noding
Assembly: NetTopologySuite.dll
Syntax
public class SegmentNodeList : IEnumerable<object>, IEnumerable
Constructors
| Improve this Doc View SourceSegmentNodeList(NodedSegmentString)
Initializes a new instance of the SegmentNodeList class.
Declaration
public SegmentNodeList(NodedSegmentString edge)
Parameters
Type | Name | Description |
---|---|---|
NodedSegmentString | edge | The edge. |
Properties
| Improve this Doc View SourceEdge
Declaration
public NodedSegmentString Edge { get; }
Property Value
Type | Description |
---|---|
NodedSegmentString |
Methods
| Improve this Doc View SourceAdd(Coordinate, Int32)
Adds an intersection into the list, if it isn't already there. The input segmentIndex and dist are expected to be normalized.
Declaration
public SegmentNode Add(Coordinate intPt, int segmentIndex)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | intPt | |
Int32 | segmentIndex |
Returns
Type | Description |
---|---|
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).
Declaration
public void AddSplitEdges(ICollection<ISegmentString> edgeList)
Parameters
Type | Name | Description |
---|---|---|
ICollection<ISegmentString> | edgeList |
GetEnumerator()
Returns an iterator of SegmentNodes.
Declaration
public IEnumerator<object> GetEnumerator()
Returns
Type | Description |
---|---|
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.
Declaration
public Coordinate[] GetSplitCoordinates()
Returns
Type | Description |
---|---|
Coordinate[] | An array of Coordinates |
Write(StreamWriter)
Declaration
public void Write(StreamWriter outstream)
Parameters
Type | Name | Description |
---|---|---|
StreamWriter | outstream |
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator |