Boost logo

Geometry :

Subject: Re: [geometry] How could I get nodes(MBRs) of the R Tree
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2018-01-23 16:50:09

Hi Zhe,

Zhe Li Via Geometry wrote:
> Dear all,
> I'm currently doing some work related to spatial index. I'm going to use the
> generated MBRs of the R Tree to do some calculation. But in the official
> page there is not such interface. How could I extract these data?

Yes there is an interface but it is not "public". Have a look at this

There is bg::index::detail::rtree::utilities::view<rtree> class allowing
you to access private members of the R-tree in order to use them with
your own node visitor. E.g. see how printing of the nodes is implemented
for debugging purposes:

visitor -
free function using the view and visitor -


Geometry list run by mateusz at