|
JTS Topology Suite version 1.13 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vividsolutions.jts.noding.FastNodingValidator
public class FastNodingValidator
Validates that a collection of SegmentStrings is correctly noded.
Indexing is used to improve performance.
In the most common use case, validation stops after a single
non-noded intersection is detected,
but the class can be requested to detect all intersections
by using the setFindAllIntersections(boolean) method.
The validator does not check for a-b-a topology collapse situations.
The validator does not check for endpoint-interior vertex intersections. This should not be a problem, since the JTS noders should be able to compute intersections between vertices correctly.
The client may either test the isValid() condition,
or request that a suitable TopologyException be thrown.
| Constructor Summary | |
|---|---|
FastNodingValidator(java.util.Collection segStrings)
Creates a new noding validator for a given set of linework. |
|
| Method Summary | |
|---|---|
void |
checkValid()
Checks for an intersection and throws a TopologyException if one is found. |
java.lang.String |
getErrorMessage()
Returns an error message indicating the segments containing the intersection. |
java.util.List |
getIntersections()
|
boolean |
isValid()
Checks for an intersection and reports if one is found. |
void |
setFindAllIntersections(boolean findAllIntersections)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FastNodingValidator(java.util.Collection segStrings)
segStrings - a collection of SegmentStrings| Method Detail |
|---|
public void setFindAllIntersections(boolean findAllIntersections)
public java.util.List getIntersections()
public boolean isValid()
public java.lang.String getErrorMessage()
public void checkValid()
TopologyException - if an intersection is found
|
JTS Topology Suite version 1.13 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||