com.vividsolutions.jts.operation.buffer.validate
public class BufferResultValidator extends java.lang.Object
This is a heuristic test, and may return false positive results (I.e. it may fail to detect an invalid result.) It should never return a false negative result, however (I.e. it should never report a valid result as invalid.)
This test may be (much) more expensive than the original buffer computation.
Constructor and Description |
---|
BufferResultValidator(Geometry input,
double distance,
Geometry result) |
Modifier and Type | Method and Description |
---|---|
Coordinate |
getErrorLocation() |
java.lang.String |
getErrorMessage() |
boolean |
isValid() |
static boolean |
isValid(Geometry g,
double distance,
Geometry result) |
static java.lang.String |
isValidMsg(Geometry g,
double distance,
Geometry result)
Checks whether the geometry buffer is valid,
and returns an error message if not.
|
public static java.lang.String isValidMsg(Geometry g, double distance, Geometry result)
g
- distance
- result
- public boolean isValid()
public java.lang.String getErrorMessage()
public Coordinate getErrorLocation()