Remove trailing whitespaces in buffer tests

This commit is contained in:
Vissarion Fisikopoulos 2023-03-17 15:22:38 +02:00
parent 4a6c2b0169
commit 792fbf9761
3 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ void test_gc()
bg::strategy::buffer::join_round join;
bg::strategy::buffer::end_round end;
bg::strategy::buffer::point_circle circle;
mpo_t result_mpo;
bg::buffer(gc, result_mpo, distance, side, join, end, circle);

View File

@ -37,7 +37,7 @@ static std::string const mysql_2015_04_10a = "MULTILINESTRING((-58 19, 61 88),(1
static std::string const mysql_2015_04_10b = "MULTILINESTRING((-58 19, 61 88), (-63 -5, -262141 -536870908, -3 87, 77 -69))";
static std::string const mysql_2015_09_08a = "MULTILINESTRING((7 -4, -3 -5), (72057594037927936 15, 72057594037927940 70368744177660, 32771 36028797018963964, 8589934589 2305843009213693953, 7 2, 9.300367e+307 9.649737e+307, -4092 -274877906946, 5 10, -3 4))";
static std::string const mysql_2015_09_08b = "MULTILINESTRING((-9 -10, 0 -1, 5 -10, -6 7, -7 7, 5.041061e+307 9.926906e+307, 6.870356e+307 1.064454e+307, 35184372088830 288230376151711743, 183673728842483250000000000000000000000.000000 244323751784861950000000000000000000000.000000), (-23530 -7131, -6 1, 1 1, 2 -6, 32766 -4194302, -4 -6), (134217725 0, 50336782742294697000000000000000000000.000000 36696596077212901000000000000000000000.000000, 7434 16486, 3.025467e+307 8.926790e+307), (2147483646 67108868, 71328904281592545000000000000000000000.000000 225041650340452780000000000000000000000.000000, -7 4, 1.667154e+307 3.990414e+307))";
static std::string const mysql_2015_09_08b = "MULTILINESTRING((-9 -10, 0 -1, 5 -10, -6 7, -7 7, 5.041061e+307 9.926906e+307, 6.870356e+307 1.064454e+307, 35184372088830 288230376151711743, 183673728842483250000000000000000000000.000000 244323751784861950000000000000000000000.000000), (-23530 -7131, -6 1, 1 1, 2 -6, 32766 -4194302, -4 -6), (134217725 0, 50336782742294697000000000000000000000.000000 36696596077212901000000000000000000000.000000, 7434 16486, 3.025467e+307 8.926790e+307), (2147483646 67108868, 71328904281592545000000000000000000000.000000 225041650340452780000000000000000000000.000000, -7 4, 1.667154e+307 3.990414e+307))";
static std::string const mysql_23023665_1 = "MULTILINESTRING((-5 15, 7 15, 19 -10, -11 -2),(2 13, 2 -9))";

View File

@ -47,7 +47,7 @@ std::string select_within_box(const std::string& wkt, const std::string& wkt_box
geometry.erase(geometry.begin(), geometry.begin() + 1);
}
geometry.erase(std::remove_if(boost::begin(geometry), boost::end(geometry),
geometry.erase(std::remove_if(boost::begin(geometry), boost::end(geometry),
[&poly](const auto& p) { return ! bg::within(p, poly); }), boost::end(geometry));
std::ostringstream out;
@ -77,7 +77,7 @@ void test_geometry(const std::string& base_folder, bool test_all = false, bool g
if (generate_cases)
{
const std::string gr = read_from_wkt_file<multi_polygon>(base_folder + "gr_ll.wkt");
test_one_geo<multi_polygon, polygon>("gr", gr, strategy, _s, _c, join, _e, 222719122493.0, 10000.0, settings);
std::cout << "cyclades = " << select_within_box<multi_polygon>(gr, "BOX(24.1395 36.0147,26.1382 38.1464)") << std::endl;
@ -85,7 +85,7 @@ void test_geometry(const std::string& base_folder, bool test_all = false, bool g
std::cout << "dodecaneses = " << select_within_box<multi_polygon>(gr, "BOX(25.8740 35.1906,28.4227 38.0700)") << std::endl;
std::cout << "ionians = " << select_within_box<multi_polygon>(gr, "BOX(18.9540 37.2072,22.4337 40.6295)") << std::endl;
std::cout << "crete = " << select_within_box<multi_polygon>(gr, "BOX(23.0592 34.4105,26.5606 35.9347)") << std::endl;
std::cout << "aegeans = " << aegeans << std::endl;
}