I would like to use the GEOS R-tree implementation to store the items of a growing structure. However, I also need to query from the tree during the growth process to make sure that growing substructures do not overlap.
This means that I need to alternatively query from and insert to the tree.
However, qerying from GEOS R-tree triggers the build
function, and inserting to a "built" tree is forbidden.
My question is therefore "is there a way around this?". From my (limited) understanding of R-trees, this should be possible: there are supposed to support this kind of dynamic update without having to be rebuilt from scratch, so how can I do that with GEOS? I've seen nothing in the C-API, and not much more than the cause of my problem:
// Cannot insert items into an STR packed R-tree after it has been built
assert(!built);