Package org.locationtech.jts.noding
Class NodingValidator
java.lang.Object
org.locationtech.jts.noding.NodingValidator
Validates that a collection of
SegmentString
s is correctly noded.
Throws an appropriate exception if an noding error is found.- Version:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final GeometryFactory
private LineIntersector
private Collection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkCollapse
(Coordinate p0, Coordinate p1, Coordinate p2) private void
Checks if a segment string contains a segment pattern a-b-a (which implies a self-intersection)private void
private void
Checks for intersections between an endpoint of a segment string and an interior vertex of another segment stringprivate void
checkEndPtVertexIntersections
(Coordinate testPt, Collection segStrings) private void
Checks all pairs of segments for intersections at an interior point of a segmentprivate void
checkInteriorIntersections
(SegmentString e0, int segIndex0, SegmentString e1, int segIndex1) private void
void
private boolean
hasInteriorIntersection
(LineIntersector li, Coordinate p0, Coordinate p1)
-
Field Details
-
li
-
segStrings
-
fact
-
-
Constructor Details
-
NodingValidator
-
-
Method Details
-
checkValid
public void checkValid() -
checkCollapses
private void checkCollapses()Checks if a segment string contains a segment pattern a-b-a (which implies a self-intersection) -
checkCollapses
-
checkCollapse
-
checkInteriorIntersections
private void checkInteriorIntersections()Checks all pairs of segments for intersections at an interior point of a segment -
checkInteriorIntersections
-
checkInteriorIntersections
private void checkInteriorIntersections(SegmentString e0, int segIndex0, SegmentString e1, int segIndex1) -
hasInteriorIntersection
- Returns:
- true if there is an intersection point which is not an endpoint of the segment p0-p1
-
checkEndPtVertexIntersections
private void checkEndPtVertexIntersections()Checks for intersections between an endpoint of a segment string and an interior vertex of another segment string -
checkEndPtVertexIntersections
-