Enhancement: Permanent storage of R-trees?

Thus, boost provides good spatial indexing capabilities in the form of R-trees. This is neat, but it is not yet possible to serialize the tree after it is assembled, am I mistaken?

The usual syntax out_archive <rtree does not work, because rtree does not have a serialize () member. In boost 1.57, there seems to be some experimental code for this, for example. /boost/geometry/index/detail/serialization.hpp, but it doesn’t actually compile!

So the first question is: does anyone know how to serialize an R-tree with boost?

If not, then my second question is: how are you going to constantly keep your index on disk to avoid having to rebuild it every time? (I have a dataset of 145M records, and it takes several hours to create the index, so I really don't want to build it more than once!)

+6
source share
1 answer
+6
source

Source: https://habr.com/ru/post/980996/


All Articles