Spatial Queries

Base.findfirst — Function
findfirst(tree::RTree{T,N}, reg::Region{T,N}, [id]) where {T,N}

Find the element in the tree by its region (reg) and, optionally, its id. The region (MBR) of the element and reg should match exactly.

Returns the tuple of Leaf and position of the element or nothing.

source
Base.isempty — Function
isempty(tree::RTree, region::Region)

Check if there are tree elements inside region.

source