BufferResultValidator

Validates that the result of a buffer operation is geometrically correct, within a computed tolerance.

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.

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def isValid(g: Geometry, distance: Double, result: Geometry): Boolean
def isValidMsg(g: Geometry, distance: Double, result: Geometry): String

Checks whether the geometry buffer is valid, and returns an error message if not.

Checks whether the geometry buffer is valid, and returns an error message if not.

Value Params
result

return an appropriate error message or null if the buffer is valid