Author: desruisseaux
Date: Tue May 17 21:19:54 2016
New Revision: 1744325
URL: http://svn.apache.org/viewvc?rev=1744325&view=rev
Log:
Fix test failures that occur only with GeoAPI 3.0 + EPSG dataset.
Modified:
sis/trunk/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/CoordinateOperationFinderTest.java
sis/trunk/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/CoordinateOperationRegistryTest.java
Modified:
sis/trunk/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/CoordinateOperationFinderTest.java
URL:
http://svn.apache.org/viewvc/sis/trunk/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/CoordinateOperationFinderTest.java?rev=1744325&r1=1744324&r2=1744325&view=diff
==============================================================================
---
sis/trunk/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/CoordinateOperationFinderTest.java
[UTF-8] (original)
+++
sis/trunk/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/CoordinateOperationFinderTest.java
[UTF-8] Tue May 17 21:19:54 2016
@@ -299,7 +299,7 @@ public final strictfp class CoordinateOp
if (targetCRS.getCoordinateSystem().getDimension() == 2) {
target = TestUtilities.dropLastDimensions(target, 3, 2);
}
- tolerance = zTolerance; // Because GeoAPI 3.0 does not distinguish z
axis from other axis (fixed in GeoAPI 3.1).
+ tolerance = zTolerance; // Because GeoAPI 3.0 does not distinguish z
axis from other axes (fixed in GeoAPI 3.1).
verifyTransform(source, target);
validate();
}
Modified:
sis/trunk/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/CoordinateOperationRegistryTest.java
URL:
http://svn.apache.org/viewvc/sis/trunk/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/CoordinateOperationRegistryTest.java?rev=1744325&r1=1744324&r2=1744325&view=diff
==============================================================================
---
sis/trunk/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/CoordinateOperationRegistryTest.java
[UTF-8] (original)
+++
sis/trunk/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/CoordinateOperationRegistryTest.java
[UTF-8] Tue May 17 21:19:54 2016
@@ -267,6 +267,7 @@ public final strictfp class CoordinateOp
zTolerance = Formulas.LINEAR_TOLERANCE;
zDimension = new int[] {2};
λDimension = new int[] {1};
+ tolerance = zTolerance; // Because GeoAPI 3.0 does not distinguish z
axis from other axes (fixed in GeoAPI 3.1).
verifyTransform(new double[] {54.271680278, 0.098269657, 20.00},
// in grads east of Paris
new double[] {48.844443528, 2.424952028, 63.15});
// in degrees east of Greenwich
validate();
@@ -302,6 +303,7 @@ public final strictfp class CoordinateOp
zTolerance = Formulas.LINEAR_TOLERANCE;
zDimension = new int[] {2};
λDimension = new int[] {1};
+ tolerance = zTolerance; // Because GeoAPI 3.0 does not distinguish z
axis from other axes (fixed in GeoAPI 3.1).
verifyTransform(new double[] {0.088442691, 48.844512250, 20.00},
// in degrees east of Paris
new double[] {2.424952028, 48.844443528, 63.15});
// in degrees east of Greenwich
validate();