[closest_points] Implement and test spherical strategies

This commit is contained in:
Vissarion Fisikopoulos
2021-11-12 12:56:03 +02:00
parent 66c5f249f1
commit a970600479
9 changed files with 381 additions and 106 deletions

View File

@@ -455,12 +455,9 @@ BOOST_AUTO_TEST_CASE( test_all_areal_areal )
{
test_all_ar_ar<car_point>(cartesian());
//double radius = bg::formula::mean_radius<double>(bg::srs::spheroid<double>());
//test_all_ar_ar<sph_point>(spherical_ps(), spherical_bb(), spherical_sb());
//test_all_ar_ar<sph_point>(spherical_ps(radius),
// spherical_bb(radius),
// spherical_sb(radius));
test_all_ar_ar<sph_point>(spherical());
test_all_ar_ar<sph_point>(spherical(
bg::formula::mean_radius<double>(bg::srs::spheroid<double>())));
//test_all_ar_ar<geo_point>(andoyer_ps(), andoyer_bb(), andoyer_sb());
//test_all_ar_ar<geo_point>(thomas_ps(), thomas_bb(), thomas_sb());

View File

@@ -975,11 +975,10 @@ BOOST_AUTO_TEST_CASE( test_all_linear_areal )
{
test_all_l_ar<car_point>(cartesian());
//double radius = bg::formula::mean_radius<double>(bg::srs::spheroid<double>());
//test_all_l_ar<sph_point>(spherical_ps(), spherical_sb());
//test_all_l_ar<sph_point>(spherical_ps(radius), spherical_sb(radius));
test_all_l_ar<sph_point>(spherical());
test_all_l_ar<sph_point>(spherical(
bg::formula::mean_radius<double>(bg::srs::spheroid<double>())));
//test_all_l_ar<geo_point>(andoyer_ps(), andoyer_sb());
//test_all_l_ar<geo_point>(thomas_ps(), thomas_sb());
//test_all_l_ar<geo_point>(vincenty_ps(), vincenty_sb());

View File

@@ -286,10 +286,9 @@ BOOST_AUTO_TEST_CASE( test_all_linear_linear )
{
test_all_l_l<car_point>(cartesian());
//double radius = bg::formula::mean_radius<double>(bg::srs::spheroid<double>());
//test_all_l_l<sph_point>(spherical_ps());
//test_all_l_l<sph_point>(spherical_ps(radius));
test_all_l_l<sph_point>(spherical());
test_all_l_l<sph_point>(spherical(
bg::formula::mean_radius<double>(bg::srs::spheroid<double>())));
//test_all_l_l<geo_point>(andoyer_ps());
//test_all_l_l<geo_point>(thomas_ps());

View File

@@ -338,10 +338,9 @@ BOOST_AUTO_TEST_CASE( test_all_pointlike_areal )
{
test_all_pl_ar<car_point>(cartesian());
//double radius = bg::formula::mean_radius<double>(bg::srs::spheroid<double>());
//test_all_pl_ar<sph_point>(spherical_ps(), spherical_pb());
//test_all_pl_ar<sph_point>(spherical_ps(radius), spherical_pb(radius));
test_all_pl_ar<sph_point>(spherical());
test_all_pl_ar<sph_point>(spherical(
bg::formula::mean_radius<double>(bg::srs::spheroid<double>())));
//test_all_pl_ar<geo_point>(andoyer_ps(), andoyer_pb());
//test_all_pl_ar<geo_point>(thomas_ps(), thomas_pb());

View File

@@ -276,10 +276,10 @@ BOOST_AUTO_TEST_CASE( test_all_pointlike_linear )
{
test_all_pl_l<car_point>(cartesian());
//test_all_pl_l<sph_point>(spherical_ps());
//test_all_pl_l<sph_point>(spherical_ps(bg::formula::mean_radius
// <double>(bg::srs::spheroid<double>())));
test_all_pl_l<sph_point>(spherical());
test_all_pl_l<sph_point>(spherical(
bg::formula::mean_radius<double>(bg::srs::spheroid<double>())));
//test_all_pl_l<geo_point>(andoyer_ps());
//test_all_pl_l<geo_point>(thomas_ps());
//test_all_pl_l<geo_point>(vincenty_ps());

View File

@@ -148,8 +148,8 @@ BOOST_AUTO_TEST_CASE( test_all_pointlike_pointlike )
test_all_pl_pl<car_point>(cartesian());
test_all_pl_pl<sph_point>(spherical());
//test_all_pl_pl<sph_point>(spherical_pp(bg::formula::mean_radius
// <double>(bg::srs::spheroid<double>())));
test_all_pl_pl<sph_point>(spherical(
bg::formula::mean_radius<double>(bg::srs::spheroid<double>())));
//test_all_pl_pl<geo_point>(andoyer_pp());
//test_all_pl_pl<geo_point>(thomas_pp());