#include #include #include #include #include #include void testSpacialIndexing() { namespace bg = boost::geometry; namespace bgm = boost::geometry::model; namespace bgi = boost::geometry::index; typedef bgm::d2::point_xy P; typedef bgm::box

B; P qpt; B qbox; bgm::ring

qring; bgm::polygon

qpoly; bgm::multi_polygon> qmpoly; bgm::segment

qseg; bgm::linestring

qls; // spacial indexing example typedef std::pair Value_t; bgi::rtree> rtree1; std::vector found; // works for all versions rtree1.query(bgi::intersects(qpt), back_inserter(found)); rtree1.query(bgi::intersects(qbox), back_inserter(found)); rtree1.query(bgi::intersects(qseg), back_inserter(found)); rtree1.query(bgi::intersects(qls), back_inserter(found)); // does not work for 1.59 to 1.61 beta rtree1.query(bgi::intersects(qring), back_inserter(found)); rtree1.query(bgi::intersects(qpoly), back_inserter(found)); rtree1.query(bgi::intersects(qmpoly), back_inserter(found)); }