[test][formulas][strategies] Change expected results of geo intersection.

This commit is contained in:
Adam Wulkiewicz 2018-08-27 23:48:13 +02:00
parent 5eb599eae9
commit 2b85597ca0
2 changed files with 10 additions and 4 deletions

View File

@ -52,6 +52,9 @@ expected_results expected[] =
{ -0.0000055778585615, -0.0000000000000000 },
{ -0.0000000000000000, -0.0000000000000000 }
},{
// TODO: Newton method in Sjoberg formula is not used in this case
// due to f1 - f2 == 0. The other method is used instead.
// Hence different results. Look into this.
{ 1, 1 },{ -1, -1 },
{ -1, 1 },{ 1, -1 },
{ 0.0000000000000000, 0.0000000000000000 },
@ -61,6 +64,9 @@ expected_results expected[] =
{ -0.0000000000000001, -0.0000055787431353 },
{ -0.0000000000000000, 0.0000000000000000 }
},{
// TODO: Newton method in Sjoberg formula is not used in this case
// due to f1 - f2 == 0. The other method is used instead.
// Hence different results. Look into this.
{ -1, -1 },{ 1, 1 },
{ 1, -1 },{ -1, 1 },
{ 0.0000000000000000, 0.0000000000000000 },

View File

@ -50,22 +50,22 @@ void test_geographic()
test_strategies<segment_t, point_t>(
"SEGMENT(-45 -45, 45 45)", "SEGMENT(-45 45, 45 -45)",
great_elliptic('i', "POINT(0 0)"),
geodesic_vincenty('i', "POINT(0 -0.0000000019543337739)"),
geodesic_vincenty('i', "POINT(0.000000001380087204053 -0.0000000000000063611)"),
geodesic_andoyer('i', "POINT(0 0.0003512140328446071)"));
test_strategies<segment_t, point_t>(
"SEGMENT(-45 -45, 45 45)", "SEGMENT(45 -45, -45 45)",
great_elliptic('i', "POINT(0 0)"),
geodesic_vincenty('i', "POINT(0 -0.0000000019543337739)"),
geodesic_vincenty('i', "POINT(0.000000001380087204053 -0.0000000000000063611)"),
geodesic_andoyer('i', "POINT(0 0.0003512140328446071)"));
test_strategies<segment_t, point_t>(
"SEGMENT(45 45, -45 -45)", "SEGMENT(-45 45, 45 -45)",
great_elliptic('i', "POINT(0 0)"),
geodesic_vincenty('i', "POINT(0 -0.0000000019543337739)"),
geodesic_vincenty('i', "POINT(0.000000001380087204053 -0.0000000000000063611)"),
geodesic_andoyer('i', "POINT(0 0.0003512140328446071)"));
test_strategies<segment_t, point_t>(
"SEGMENT(45 45, -45 -45)", "SEGMENT(45 -45, -45 45)",
great_elliptic('i', "POINT(0 0)"),
geodesic_vincenty('i', "POINT(0 -0.0000000019543337739)"),
geodesic_vincenty('i', "POINT(0.000000001380087204053 -0.0000000000000063611)"),
geodesic_andoyer('i', "POINT(0 0.0003512140328446071)"));
// crossing X