Toblerity / rtree

Rtree: spatial index for Python GIS
https://rtree.readthedocs.io
MIT License
619 stars 124 forks source link

return non leaf childs of index #101

Open ziya61 opened 6 years ago

ziya61 commented 6 years ago

I have a dataset that consist of 2000 buildings as polygon geometries. I create and index object but I could not figure out how can I get all child nodes and their bounds using this module. Is it possible to return non leaf childs and their bounds using this module?

FreakTheMighty commented 4 years ago

I too would find this useful. My use case is similar to @ziya61 - rtree provides a useful way to cluster bounding boxes, grabbing non-leaf nodes allows us to segment a 3D scene into somewhat arbitrary sizes.