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

Add method access Quadtree internals #966

Open
zdila opened this issue Mar 10, 2023 · 0 comments
Open

Add method access Quadtree internals #966

zdila opened this issue Mar 10, 2023 · 0 comments

Comments

@zdila
Copy link

zdila commented Mar 10, 2023

Add method to access Quadtree internals (Root and for Root its Nodes ). STRTree has such methods (itemsTree, getRoot).

In our case we need it for accessing any element from the Quadtree. With STRTree we can do it like this:

// STRTree st;

Object item = st.itemsTree();

if (!((List<?>) item).isEmpty()) {
  do {
    item = ((List<?>) item).get(0);
  }  while (item instanceof List);
}

// now `item` is a single element from `STRTree`
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