// Boost.Geometry (aka GGL, Generic Geometry Library) // // Boost.Index - example // // Copyright 2011 Adam Wulkiewicz. // 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 #include #include #include int main() { tests_translators_hpp(); tests_rtree_native_hpp(); tests_rtree_native_hpp(); tests_rtree_filters_hpp(); /* { namespace bg = boost::geometry; namespace bgi = boost::geometry::index; typedef bg::model::point P; typedef bg::model::box

B; typedef std::pair V; bgi::rtree t(4, 2); const int m = 15; for ( int i = 0 ; i < m ; ++i ) { bgi::insert(t, V(B(P(i*2.0f, i*2.0f), P(i*2.0f+1, i*2.0f+1)), i)); } std::cout << t << "\n------------------------------------\n"; std::cin.get(); for ( int i = 0 ; i < m ; ++i ) { bgi::remove(t, V(B(P(i*2.0f, i*2.0f), P(i*2.0f+1, i*2.0f+1)), i)); std::cout << t << '\n'; std::cout << ( boost::geometry::index::are_boxes_ok(t) ? "boxes OK" : "WRONG BOXES!" ); std::cout << "\n------------------------------------\n"; std::cin.get(); } } */ #ifdef _MSC_VER std::cin.get(); #endif return 0; }