touching_geometry#

RTree.touching_geometry(rtree_obj, increment_visit)#

Find all geometries touching an RTree object.

The provided RTree object is not returned in the touching list.

Parameters:
rtree_objRTreeObj

R-tree data object with index in this form: (polygon, id pair).

increment_visit: bool

Whether to increment the visit counter for items returned in the list of connected geometries.

Returns:
list of RTreeObj

All touching RTree objects.