Class BufferResultMatcher

    • Constructor Detail

      • BufferResultMatcher

        public BufferResultMatcher()
    • Method Detail

      • isMatch

        public 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. The input parameters are not considered.
        Specified by:
        isMatch in interface ResultMatcher
        Parameters:
        geom - the target geometry
        opName - the operation performed
        args - the input arguments to the operation
        actualResult - the actual computed result
        expectedResult - the expected result of the test
        tolerance - the tolerance for the test
        Returns:
        true if the actual and expected results are considered equal
      • isBufferResultMatch

        public boolean isBufferResultMatch​(Geometry actualBuffer,
                                           Geometry expectedBuffer,
                                           double distance)
      • isSymDiffAreaInTolerance

        public boolean isSymDiffAreaInTolerance​(Geometry actualBuffer,
                                                Geometry expectedBuffer)
      • isBoundaryHausdorffDistanceInTolerance

        public boolean isBoundaryHausdorffDistanceInTolerance​(Geometry actualBuffer,
                                                              Geometry expectedBuffer,
                                                              double distance)