connected_geometry#

RTree.connected_geometry(rtree_obj, increment_visit)#

Find the connected geometries.

If a connections exists, the provided RTree object is returned in the connected 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 connected list.

Returns:
list of RTreeObj

List of connected geometries.