Skip to content

Return pointer to Rtree node for repeated querying inside that node? #911

Answered by awulkiew
Lenostatos asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure if R-tree is the best structure for that. I'd guess that kd-tree, esspecially a kd-tree with links between neighbouring nodes for speeding up traversing close areas would be better. AFAIR this was specifically designed for LIDAR point clouds, because when a new LIDAR measurement has to be merged with the existing point cloud with an algorithm like Iterative Closest Points the points are typically close to each other.


But if you want to use the R-tree, the most simple approach would probably be to construct small R-tree from the large one:
bgi::rtree<...>small(large | bgi::queried(bgi::intersects(box)));
This way the large R-tree is traversed to get all of the elements inters…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by awulkiew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #847 on September 28, 2021 22:44.