remove

fun remove(item: T): Boolean(source)

Removes a specific item from the tree.

This method finds the given item in the R-tree and removes it. The tree is then rebalanced by condensing the path from the removed item's leaf node up to the root, ensuring the tree's structural integrity. If the item is not found, the tree remains unchanged and the method returns false.

Note: Item equality is used to find the item to remove. Ensure that the equals method of your feature type T is correctly implemented. The item's bounding box must also be available for the search to work correctly.

Return

true if the item was successfully found and removed, false otherwise.

Parameters

item

The item to remove from the tree.