From aa840ec555201f1902003aec34aee42996b244e2 Mon Sep 17 00:00:00 2001 From: Vissarion Fisikopoulos Date: Thu, 16 May 2024 14:37:08 +0300 Subject: [PATCH] [test] Test case for polygon with multiple points representing South pole --- test/algorithms/covered_by/covered_by_sph_geo.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/algorithms/covered_by/covered_by_sph_geo.cpp b/test/algorithms/covered_by/covered_by_sph_geo.cpp index 34e1a5cf2..934f65f64 100644 --- a/test/algorithms/covered_by/covered_by_sph_geo.cpp +++ b/test/algorithms/covered_by/covered_by_sph_geo.cpp @@ -306,6 +306,11 @@ void test_point_polygon() BOOST_CHECK_EQUAL(bg::covered_by(Point(-1, -61), poly_s_complex_5edges, ws), false); BOOST_CHECK_EQUAL(bg::covered_by(Point(15, -81), poly_s_complex_5edges, ws), false); BOOST_CHECK_EQUAL(bg::covered_by(Point(7, -50), poly_s_complex_5edges, ws), false); + + //multiple points representing South pole + bg::model::polygon poly_multiple_poles; + bg::read_wkt("POLYGON((75 -90, 75 -6, 120 -45, 163 -90, 75 -90))", poly_multiple_poles); + BOOST_CHECK_EQUAL(bg::covered_by(Point(119, -46), poly_multiple_poles, ws), true); } // Polygon covering nearly half of the globe but no poles {