Boost logo

Geometry :

From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2021-02-26 20:16:46


On Fri, 26 Feb 2021 at 21:13, Mateusz Loskot <mateusz_at_[hidden]> wrote:
>
> On Fri, 26 Feb 2021 at 08:51, Panagiotis SIMATIS via Geometry
> <geometry_at_[hidden]> wrote:
> >
> > I am a research student and I am using the RTree by geometry boost.
> > Can someone suggest a way to calculate the size of the RTree in bytes?
> > In addition, is there a way I can find the total number of nodes in the index?
>
> Here is an old sample of mine with collector of the index statistics
> https://gist.github.com/mloskot/5715329

I forgot about the similar one in the library source tree
https://github.com/boostorg/geometry/blob/1243579bf071e1f51eb02897e05aa7ffe20ff69a/include/boost/geometry/index/detail/rtree/utilities/statistics.hpp

Here you can see how to call it
https://github.com/boostorg/geometry/blob/793345358c28ad0f18cc02e9c62ce18ebb61247b/index/example/serialize.cpp

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net

Geometry list run by mateusz at loskot.net