Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to retrieve the tree structure for further modification? #155

Open
cloudray8580 opened this issue May 11, 2020 · 0 comments

Comments

@cloudray8580
Copy link

cloudray8580 commented May 11, 2020

Hi, I'm not sure if it's able to retrieve the tree structure for further modification.
For example, I may want to build a rtree using the current wrapper, then
add an extra aggregate count attribute in each node (from leaf to root).
But is there any way to retrieve the internal nodes (which maintain the tree structure)?

In addition, when I want to control the leaf size using leaf_capacity and fill_factor, why every leaf node turn out to be the minimum size (i.e., 5000 here)? Did I miss anything?

p = index.Property()
p.leaf_capacity = 10000
p.fill_factor = 0.5
p.overwrite = True
idx = index.Index(DatasetGenerator(dataset),properties = p)
leaves = idx.leaves()
@cloudray8580 cloudray8580 changed the title How to get the tree structure. How to get all the leaf MBRs How to control the minimum leaf size May 12, 2020
@cloudray8580 cloudray8580 changed the title How to control the minimum leaf size Is there a way to retrieve the tree structure for further modification? May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant