public class BufferResultMatcher extends Object implements ResultMatcher
ResultMatcher
which compares the results of
buffer operations for equality, up to the given tolerance.
All other operations are delagated to the
standard EqualityResultMatcher
algorithm.Constructor and Description |
---|
BufferResultMatcher() |
Modifier and Type | Method and Description |
---|---|
boolean |
isBoundaryHausdorffDistanceInTolerance(Geometry actualBuffer,
Geometry expectedBuffer,
double distance) |
boolean |
isBufferResultMatch(Geometry actualBuffer,
Geometry expectedBuffer,
double distance) |
boolean |
isMatch(Geometry geom,
String opName,
Object[] args,
Result actualResult,
Result expectedResult,
double tolerance)
Tests whether the two results are equal within the given
tolerance.
|
boolean |
isSymDiffAreaInTolerance(Geometry actualBuffer,
Geometry expectedBuffer) |
public boolean isMatch(Geometry geom, String opName, Object[] args, Result actualResult, Result expectedResult, double tolerance)
isMatch
in interface ResultMatcher
geom
- the target geometryopName
- the operation performedargs
- the input arguments to the operationactualResult
- the actual computed resultexpectedResult
- the expected result of the testtolerance
- the tolerance for the testpublic boolean isBufferResultMatch(Geometry actualBuffer, Geometry expectedBuffer, double distance)
public boolean isSymDiffAreaInTolerance(Geometry actualBuffer, Geometry expectedBuffer)
Copyright © 2020. All rights reserved.