sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 01/02: More accurate rhumb line distance in test cases using values computed by Karney's online calculator.
Date Sun, 11 Aug 2019 15:16:34 GMT
This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit 4a0bac36413e0ff75092076be759a043daaa1dc5
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Sun Aug 11 16:36:03 2019 +0200

    More accurate rhumb line distance in test cases using values computed by Karney's online
calculator.
---
 .../org/apache/sis/referencing/GeodesicsOnEllipsoidTest.java | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/core/sis-referencing/src/test/java/org/apache/sis/referencing/GeodesicsOnEllipsoidTest.java
b/core/sis-referencing/src/test/java/org/apache/sis/referencing/GeodesicsOnEllipsoidTest.java
index 7b28707..7977c73 100644
--- a/core/sis-referencing/src/test/java/org/apache/sis/referencing/GeodesicsOnEllipsoidTest.java
+++ b/core/sis-referencing/src/test/java/org/apache/sis/referencing/GeodesicsOnEllipsoidTest.java
@@ -529,7 +529,9 @@ public final strictfp class GeodesicsOnEllipsoidTest extends GeodeticCalculatorT
         assertValueEquals("m₂", 0, 3201.59 / scale,      1E-6, false);
         assertValueEquals("Δm", 0, 2586.16 / scale,      1E-6, false);
         assertValueEquals("C",  0, 54.9900,              1E-4, true);
-        assertEquals("distance", 4507.7 * NAUTICAL_MILE, distance, 0.05 * NAUTICAL_MILE);
+        assertEquals("distance", 4507.7 * NAUTICAL_MILE, distance, 0.05 * NAUTICAL_MILE);
  // From Bennett (1996)
+        assertEquals("distance", 8348285.202, distance, Formulas.LINEAR_TOLERANCE);     
   // From Karney's online calculator.
+//      assertEquals("azimuth",  54.99008056, azimuth,  1E-8);
     }
 
     /**
@@ -546,7 +548,9 @@ public final strictfp class GeodesicsOnEllipsoidTest extends GeodeticCalculatorT
         assertValueEquals("Δλ", 0,  55+57.0 / 60,         1E-11, true);
         assertValueEquals("ΔΨ", 0,   -38.12 / (10800/PI), 1E-5, false);
         assertValueEquals("C",  0,  90.6505,              1E-4, true);
-        assertEquals("distance", 2028.9 * NAUTICAL_MILE, distance, 0.05 * NAUTICAL_MILE);
+        assertEquals("distance", 2028.9 * NAUTICAL_MILE, distance, 0.05 * NAUTICAL_MILE);
  // From Bennett (1996)
+        assertEquals("distance", 3757550.656, distance, Formulas.LINEAR_TOLERANCE);     
   // From Karney's online calculator.
+//      assertEquals("azimuth",  90.65049570, azimuth,  1E-8);
     }
 
     /**
@@ -562,6 +566,8 @@ public final strictfp class GeodesicsOnEllipsoidTest extends GeodeticCalculatorT
         final double distance = testedEarth.getRhumblineLength();
         assertValueEquals("Δλ", 0, 4004.3 / 60, 1E-11, true);
         assertValueEquals("C",  0,   90.0,      1E-4, true);
-        assertEquals("distance", 2649.9 * NAUTICAL_MILE, distance, 0.1 * NAUTICAL_MILE);
+        assertEquals("distance", 2649.9 * NAUTICAL_MILE, distance, 0.1 * NAUTICAL_MILE);
   // From Bennett (1996)
+        assertEquals("distance", 4907757.375, distance, Formulas.LINEAR_TOLERANCE);     
   // From Karney's online calculator.
+//      assertEquals("azimuth",  90.00000000, azimuth,  1E-8);
     }
 }


Mime
View raw message