BufferResultValidator class

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.

@author Martin Davis

Constructors

BufferResultValidator(Geometry input, double distance, Geometry result)

Properties

distance double
getter/setter pair
errorIndicator Geometry?
getter/setter pair
errorLocation Coordinate?
getter/setter pair
errorMsg String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
input Geometry
getter/setter pair
result Geometry
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkArea() → void
checkDistance() → void
checkEnvelope() → void
checkExpectedEmpty() → void
checkPolygonal() → void
getErrorIndicator() Geometry?
Gets a geometry which indicates the location and nature of a validation failure.
getErrorLocation() Coordinate?
getErrorMessage() String?
isValid() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
report(String checkName) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

MAX_ENV_DIFF_FRAC double
Maximum allowable fraction of buffer distance the actual distance can differ by. 1% sometimes causes an error - 1.2% should be safe.
final
VERBOSE bool
getter/setter pair

Static Methods

isValidGDG(Geometry g, double distance, Geometry result) bool
isValidMsg(Geometry g, double distance, Geometry result) String?
Checks whether the geometry buffer is valid, and returns an error message if not.