Class EdgeNodingValidator
- Namespace
- NetTopologySuite.GeometriesGraph
- Assembly
- NetTopologySuite.dll
Validates that a collection of Edge is correctly noded.
Throws an appropriate exception if an noding error is found.
public class EdgeNodingValidator
- Inheritance
-
EdgeNodingValidator
- Inherited Members
Constructors
EdgeNodingValidator(IEnumerable<Edge>)
Creates a new validator for the given collection of Edges.
public EdgeNodingValidator(IEnumerable<Edge> edges)
Parameters
edges
IEnumerable<Edge>
Methods
CheckValid()
Checks whether the supplied edges are correctly noded.
public void CheckValid()
Exceptions
- TopologyException
If the SegmentStrings are not correctly noded
CheckValid(IEnumerable<Edge>)
Checks whether the supplied Edges are correctly noded.
public static void CheckValid(IEnumerable<Edge> edges)
Parameters
edges
IEnumerable<Edge>an enumeration of Edges.
Exceptions
- TopologyException
If the SegmentStrings are not correctly noded
ToSegmentStrings(IEnumerable<Edge>)
Builds an enumeration of segment strings from the provided edges
.
public static IEnumerable<ISegmentString> ToSegmentStrings(IEnumerable<Edge> edges)
Parameters
edges
IEnumerable<Edge>An enumeration of
Edge
s
Returns
- IEnumerable<ISegmentString>
An enumeration of
ISegmentString
s