// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2015 Bruno Lalande, Paris, France. // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef GEOMETRY_TEST_MULTI_OVERLAY_COMMON_HPP #define GEOMETRY_TEST_MULTI_OVERLAY_COMMON_HPP #include #include #include //#include template void test_all(std::vector const& expected, double precision = 0.01) { typename boost::range_const_iterator >::type iterator = boost::begin(expected); typedef bg::model::multi_polygon > mp; typedef bg::model::box

box; BOOST_ASSERT(iterator != boost::end(expected)); test_overlay("1", *iterator, "MULTIPOLYGON(((0 1,2 5,5 3,0 1)),((1 1,5 2,5 0,1 1)))", "MULTIPOLYGON(((3 0,0 3,4 5,3 0)))", precision); iterator++; } #endif // GEOMETRY_TEST_MULTI_OVERLAY_COMMON_HPP