id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 12189,"R-tree spacial predicates for ring, polygon, multipolygon fail to compile",mike.vasiljevs@…,Barend Gehrels,"It is possible to compile an *intersects* query (http://www.boost.org/doc/libs/1_60_0/libs/geometry/doc/html/geometry/spatial_indexes/queries.html#geometry.spatial_indexes.queries.spatial_predicates) on R-tree of *box*es using a *ring*, *polygon*, *multipolygon* predicates in boost 1.58.0, but not in later versions. Test compilation with this example: ---------------------------------------------------------------- #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)); } ---------------------------------------------------------------- Test works with release 1.58 Test does not work with releases 1.59, 1.60, 1.61.0b1",Bugs,closed,Boost 1.62.0,geometry,Boost 1.59.0,Problem,fixed,,