0);
final NumericRange rangeLatitude4 = new NumericRange(
0,
Double.MIN_VALUE);
final RangeDecomposition expectedResult1 = expectedResultOperations.decomposeRange(
new NumericData[] {
rangeLongitude1,
rangeLatitude1
},
compactHilbertCurve,
sfcDimensions,
totalPrecision,
Integer.MAX_VALUE,
true);
final RangeDecomposition testResult1 = testOperations.decomposeRange(
new NumericData[] {
rangeLongitude1,
rangeLatitude1
},
compactHilbertCurve,
sfcDimensions,
totalPrecision,
Integer.MAX_VALUE,
true);
Assert.assertTrue(expectedResult1.getRanges().length == testResult1.getRanges().length);
for (int i = 0; i < expectedResult1.getRanges().length; i++) {
Assert.assertTrue(expectedResult1.getRanges()[i].equals(testResult1.getRanges()[i]));
}
final RangeDecomposition expectedResult2 = expectedResultOperations.decomposeRange(
new NumericData[] {
rangeLongitude2,
rangeLatitude2
},
compactHilbertCurve,
sfcDimensions,
totalPrecision,
Integer.MAX_VALUE,
true);
final RangeDecomposition testResult2 = testOperations.decomposeRange(
new NumericData[] {
rangeLongitude2,
rangeLatitude2
},
compactHilbertCurve,
sfcDimensions,
totalPrecision,
Integer.MAX_VALUE,
true);
Assert.assertTrue(expectedResult2.getRanges().length == testResult2.getRanges().length);
for (int i = 0; i < expectedResult2.getRanges().length; i++) {
Assert.assertTrue(expectedResult2.getRanges()[i].equals(testResult2.getRanges()[i]));
}
final RangeDecomposition expectedResult3 = expectedResultOperations.decomposeRange(
new NumericData[] {
rangeLongitude3,
rangeLatitude3
},
compactHilbertCurve,
sfcDimensions,
totalPrecision,
Integer.MAX_VALUE,
true);
final RangeDecomposition testResult3 = testOperations.decomposeRange(
new NumericData[] {
rangeLongitude3,
rangeLatitude3
},
compactHilbertCurve,
sfcDimensions,
totalPrecision,
Integer.MAX_VALUE,
true);
Assert.assertTrue(expectedResult3.getRanges().length == testResult3.getRanges().length);
for (int i = 0; i < expectedResult3.getRanges().length; i++) {
Assert.assertTrue(expectedResult3.getRanges()[i].equals(testResult3.getRanges()[i]));
}
final RangeDecomposition expectedResult4 = expectedResultOperations.decomposeRange(
new NumericData[] {
rangeLongitude4,
rangeLatitude4
},
compactHilbertCurve,
sfcDimensions,
totalPrecision,
Integer.MAX_VALUE,
true);
final RangeDecomposition testResult4 = testOperations.decomposeRange(
new NumericData[] {
rangeLongitude4,
rangeLatitude4
},
compactHilbertCurve,
sfcDimensions,
totalPrecision,
Integer.MAX_VALUE,
true);
Assert.assertTrue(expectedResult4.getRanges().length == testResult4.getRanges().length);
for (int i = 0; i < expectedResult4.getRanges().length; i++) {
Assert.assertTrue(expectedResult4.getRanges()[i].equals(testResult4.getRanges()[i]));
}
}