【发布时间】:2017-05-08 03:16:14
【问题描述】:
我想用 dynamic_quadratic 创建 rtree,并在承包商处给它一个使用打包算法的范围。 这是我使用常规二次函数的代码。
namespace bg = boost::geometry;
namespace bgi = boost::geometry::index;
typedef bg::model::point<double , 3, bg::cs::cartesian> BoostPoint;
typedef std::pair<BoostPoint, unsigned> PointValue;
std::vector<PointValue> points;
for(...)
{
//fill in the points vector
}
bgi::rtree< PointValue, bgi::quadratic<16> > rtree_points(points);
我该怎么做:bgi::rtree< PointValue, bgi::dynamic_quadratic > rtree_points(points);?
已经看过这个例子了:
packing algorithm in rtree in boost
【问题讨论】:
标签: c++ algorithm boost boost-geometry