// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands. // This file was modified by Oracle on 2014, 2015, 2017. // Modifications copyright (c) 2014-2017 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, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include "test_overlaps.hpp" template void test_pp() { typedef bg::model::multi_point

mpt; test_geometry("POINT(0 0)", "POINT(0 0)", false); test_geometry("POINT(0 0)", "POINT(1 1)", false); test_geometry("POINT(0 0)", "MULTIPOINT(0 0, 1 1)", false); test_geometry("MULTIPOINT(0 0, 1 1)", "POINT(0 0)", false); test_geometry("MULTIPOINT(0 0,1 1,2 2)", "MULTIPOINT(1 1,3 3,4 4)", true); test_geometry("MULTIPOINT(0 0,1 1,2 2)", "MULTIPOINT(1 1,2 2)", false); } template void test_ll() { typedef bg::model::linestring

ls; typedef bg::model::multi_linestring mls; test_geometry("LINESTRING(0 0,2 2,3 1)", "LINESTRING(1 1,2 2,4 4)", true); test_geometry("LINESTRING(0 0,2 2,4 0)", "LINESTRING(0 1,2 1,3 2)", false); test_geometry("LINESTRING(0 0,2 2,3 1)", "MULTILINESTRING((1 1,2 2),(2 2,4 4))", true); test_geometry("LINESTRING(0 0,2 2,3 1)", "MULTILINESTRING((1 1,2 2),(3 3,4 4))", true); test_geometry("LINESTRING(0 0,3 3,3 1)", "MULTILINESTRING((3 3,2 2),(0 0,1 1))", false); } template void test_2d() { test_pp

(); test_ll

(); } int test_main( int , char* [] ) { test_2d >(); test_2d >(); #if defined(HAVE_TTMATH) test_2d >(); #endif return 0; }