You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;Objectitem = st.itemsTree();
if (!((List<?>) item).isEmpty()) {
do {
item = ((List<?>) item).get(0);
} while (iteminstanceofList);
}
// now `item` is a single element from `STRTree`
The text was updated successfully, but these errors were encountered:
Add method to access
Quadtree
internals (Root
and forRoot
itsNode
s ).STRTree
has such methods (itemsTree
,getRoot
).In our case we need it for accessing any element from the
Quadtree
. WithSTRTree
we can do it like this:The text was updated successfully, but these errors were encountered: