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