#include #include #include #include #include #include #include #include #include #include #include typedef long double GeometryCoord; typedef boost::geometry::model::d2::point_xy GeometryPoint; typedef boost::geometry::model::polygon GeometryPolygon; typedef boost::geometry::model::ring GeometryRing; typedef boost::geometry::model::polygon::inner_container_type GeometryRingsList; typedef boost::geometry::model::box GeometryBox; typedef boost::geometry::model::segment GeometrySegment; typedef boost::geometry::model::multi_point GeometryMultiPoint; namespace bgi = boost::geometry::index; typedef std::pair Value; int main() { boost::geometry::index::rtree > rtree; GeometryPolygon p; GeometryBox Box; boost::geometry::envelope( p, Box ); rtree.insert(std::make_pair(Box, &p)); rtree.remove(std::make_pair(Box, &p)); return 0; }