Skip to content

Add method access Quadtree internals #966

@zdila

Description

@zdila

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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions