mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-21 03:02:10 +00:00
[closest_points] Implement and test spherical strategies
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user