com.vividsolutions.jts.operation.valid
Class IsValidOp

java.lang.Object
  extended bycom.vividsolutions.jts.operation.valid.IsValidOp

public class IsValidOp
extends java.lang.Object

Implements the algorithsm required to compute the isValid() method for Geometrys.

Version:
1.4.0

Constructor Summary
IsValidOp(Geometry parentGeometry)
           
 
Method Summary
static Coordinate findPtNotNode(Coordinate[] testCoords, LinearRing searchRing, GeometryGraph graph)
          Find a point from the list of testCoords that is NOT a node in the edge for the list of searchCoords
 TopologyValidationError getValidationError()
           
 boolean isValid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsValidOp

public IsValidOp(Geometry parentGeometry)
Method Detail

findPtNotNode

public static Coordinate findPtNotNode(Coordinate[] testCoords,
                                       LinearRing searchRing,
                                       GeometryGraph graph)
Find a point from the list of testCoords that is NOT a node in the edge for the list of searchCoords

Returns:
the point found, or null if none found

isValid

public boolean isValid()

getValidationError

public TopologyValidationError getValidationError()