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_obj
RTreeObj
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.
- rtree_obj
- Returns:
list
of
RTreeObj
List of connected geometries.