public class NodingValidator
extends java.lang.Object
SegmentString
s is correctly noded.
Throws an appropriate exception if an noding error is found.Modifier and Type | Field and Description |
---|---|
private static GeometryFactory |
fact |
private LineIntersector |
li |
private java.util.Collection |
segStrings |
Constructor and Description |
---|
NodingValidator(java.util.Collection segStrings) |
Modifier and Type | Method and Description |
---|---|
private void |
checkCollapse(Coordinate p0,
Coordinate p1,
Coordinate p2) |
private void |
checkCollapses()
Checks if a segment string contains a segment pattern a-b-a (which implies a self-intersection)
|
private void |
checkCollapses(SegmentString ss) |
private void |
checkEndPtVertexIntersections()
Checks for intersections between an endpoint of a segment string
and an interior vertex of another segment string
|
private void |
checkEndPtVertexIntersections(Coordinate testPt,
java.util.Collection segStrings) |
private void |
checkInteriorIntersections()
Checks all pairs of segments for intersections at an interior point of a segment
|
private void |
checkInteriorIntersections(SegmentString e0,
int segIndex0,
SegmentString e1,
int segIndex1) |
private void |
checkInteriorIntersections(SegmentString ss0,
SegmentString ss1) |
void |
checkValid() |
private boolean |
hasInteriorIntersection(LineIntersector li,
Coordinate p0,
Coordinate p1) |
private LineIntersector li
private java.util.Collection segStrings
private static final GeometryFactory fact
public void checkValid()
private void checkCollapses()
private void checkCollapses(SegmentString ss)
private void checkCollapse(Coordinate p0, Coordinate p1, Coordinate p2)
private void checkInteriorIntersections()
private void checkInteriorIntersections(SegmentString ss0, SegmentString ss1)
private void checkInteriorIntersections(SegmentString e0, int segIndex0, SegmentString e1, int segIndex1)
private boolean hasInteriorIntersection(LineIntersector li, Coordinate p0, Coordinate p1)
private void checkEndPtVertexIntersections()
private void checkEndPtVertexIntersections(Coordinate testPt, java.util.Collection segStrings)