You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2017/10/31 11:06:25 UTC
svn commit: r1813872 -
/sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/DefaultCoordinateOperationFactoryTest.java
Author: desruisseaux
Date: Tue Oct 31 11:06:25 2017
New Revision: 1813872
URL: http://svn.apache.org/viewvc?rev=1813872&view=rev
Log:
Fix the comment about test accuracy.
Modified:
sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/DefaultCoordinateOperationFactoryTest.java
Modified: sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/DefaultCoordinateOperationFactoryTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/DefaultCoordinateOperationFactoryTest.java?rev=1813872&r1=1813871&r2=1813872&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/DefaultCoordinateOperationFactoryTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/DefaultCoordinateOperationFactoryTest.java [UTF-8] Tue Oct 31 11:06:25 2017
@@ -169,16 +169,18 @@ public final strictfp class DefaultCoord
assertSame ("targetCRS", targetCRS, operation.getTargetCRS());
assertInstanceOf("operation", ConcatenatedOperation.class, operation);
/*
- * The accuracy of the coordinate operation depends on whether a path as been found with the help
+ * The accuracy of the coordinate operation depends on whether a path has been found with the help
* of the EPSG database (in which case the reported accuracy is 2 metres) or if we had to find an
- * operation by ourselves (in which case we conservatively report an accuracy of 3000 metres, bu
- * in practice observe an error of about 80 metres for this test).
+ * operation by ourselves (in which case we conservatively report an accuracy of 3000 metres, but
+ * in practice observe an error between 80 and 515 metres for this test depending on the operation
+ * method used). By comparison, the translation declared in EPSG database is about 370 metres in
+ * geocentric coordinates.
*/
final boolean isUsingEpsgFactory = verifyParametersNTF(((ConcatenatedOperation) operation).getOperations(), 1);
assertEquals("linearAccuracy", isUsingEpsgFactory ? 2 : PositionalAccuracyConstant.UNKNOWN_ACCURACY,
CRS.getLinearAccuracy(operation), STRICT);
- tolerance = isUsingEpsgFactory ? Formulas.LINEAR_TOLERANCE : 1000;
+ tolerance = isUsingEpsgFactory ? Formulas.LINEAR_TOLERANCE : 600;
transform = operation.getMathTransform();
/*
* Test using the location of Paris (48.856578°N, 2.351828°E) first,
@@ -236,7 +238,7 @@ public final strictfp class DefaultCoord
assertEquals("linearAccuracy", isUsingEpsgFactory ? 2 : PositionalAccuracyConstant.UNKNOWN_ACCURACY,
CRS.getLinearAccuracy(operation), STRICT);
- tolerance = isUsingEpsgFactory ? Formulas.LINEAR_TOLERANCE : 1000;
+ tolerance = isUsingEpsgFactory ? Formulas.LINEAR_TOLERANCE : 600;
transform = operation.getMathTransform();
isInverseTransformSupported = false;
/*