diff --git a/test/multi/algorithms/multi_centroid.cpp b/test/multi/algorithms/multi_centroid.cpp index 4b4d47c90..c2e648841 100644 --- a/test/multi/algorithms/multi_centroid.cpp +++ b/test/multi/algorithms/multi_centroid.cpp @@ -17,6 +17,7 @@ #include #include +#include #include #include @@ -34,13 +35,17 @@ void test_2d(bool is_integer = false) if (! is_integer) { + // Only working for floating point: + test_centroid >( "MULTIPOINT((1 1),(2 3),(5 0))", 2.666666666666667, 1.33333); + test_centroid > >( + "MULTILINESTRING((0 0,0 2),(1 0,1 2))", + 0.5, 1.0); - // Only working for floating point: test_centroid > >( "MULTIPOLYGON(((1 1,1 3,3 3,3 1,1 1)),((4 1,4 3,8 3,8 1,4 1)))", 4.666666666666667, 2.0); @@ -97,11 +102,11 @@ void test_2d(bool is_integer = false) int test_main(int, char* []) { - //test_2d >(); + test_2d >(); test_2d >(); test_2d >(true); //test_2d >(true); - test_2d >(); + //test_2d >(); #ifdef HAVE_TTMATH test_2d >();