// Copyright (c) 2012-2019 Barend Gehrels, Amsterdam, the Netherlands.
-// This file was modified by Oracle on 2016.
-// Modifications copyright (c) 2016, Oracle and/or its affiliates.
+// This file was modified by Oracle on 2016-2021.
+// Modifications copyright (c) 2016-2021, Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Use, modification and distribution is subject to the Boost Software License,
test_one<multi_linestring_type, polygon>("mikado4_small", mikado4, join_round32, end_flat, 1930.785, 10.0);
}
- if (! BOOST_GEOMETRY_CONDITION((boost::is_same<coor_type, float>::value)))
+ if (! BOOST_GEOMETRY_CONDITION((std::is_same<coor_type, float>::value)))
{
// Coordinates in one linestring vary so much that
// length = geometry::math::sqrt(dx * dx + dy * dy); returns a value of inf for length
test_one<multi_linestring_type, polygon>("mysql_23023665_1_20",
mysql_23023665_1, join_round32, end_flat, 1, 1, 350.1135, 2.0);
-#if ! defined(BOOST_GEOMETRY_USE_RESCALING) || defined(BOOST_GEOMETRY_TEST_FAILURES)
+#if defined(BOOST_GEOMETRY_TEST_FAILURES)
{
- // Cases failing with rescaling
+ // Cases (railway roads) still failing
ut_settings settings(10.0, false);
test_one<multi_linestring_type, polygon>("ticket_13444_1",
ticket_13444, join_round32, end_round32, 3, 0, 11801.7832, 1.0, settings);
}
#endif
+ {
+ // This issue was detected for CCW order and only CW is tested by default.
+ using polygon_ccw = bg::model::polygon<P, ! Clockwise>;
+ test_one
+ <
+ multi_linestring_type, polygon_ccw
+ >("mysql_33353637_macos11",
+ "MULTILINESTRING((0 10,10 0),(10 0,0 0),(0 0,10 10))",
+ bg::strategy::buffer::join_miter(10),
+ end_round32,
+ 1, 0, 35307.0646,
+ 100.0);
+ }
}
#endif
#if defined(BOOST_GEOMETRY_TEST_FAILURES)
- BoostGeometryWriteExpectedFailures(9, BG_NO_FAILURES, 12, BG_NO_FAILURES);
+ BoostGeometryWriteExpectedFailures(9, 6, 9, 3);
#endif
return 0;
}