com.vividsolutions.jts.operation.valid

Class IsValidOp


public class IsValidOp
extends java.lang.Object

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

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()
static boolean
isValid(Coordinate coord)
Checks whether a coordinate is valid for processing.

Constructor Details

IsValidOp

public IsValidOp(Geometry parentGeometry)

Method Details

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

getValidationError

public TopologyValidationError getValidationError()

isValid

public boolean isValid()

isValid

public static boolean isValid(Coordinate coord)
Checks whether a coordinate is valid for processing. Coordinates are valid iff their x and y ordinates are in the range of the floating point representation.
Parameters:
coord - the coordinate to validate
Returns:
true if the coordinate is valid