GerryChain
GerryChain copied to clipboard
Shapely deprecation warning
Graph raises the following deprecation warning when assigning ids to geometries for purposes of calculating adjacency:
... /gerrychain/graph/adjacency.py:21: ShapelyDeprecationWarning: Setting custom attributes on geometry objects is deprecated, and will raise an AttributeError in Shapely 2.0
geometries[i].id = I
Another method of tracking geometry identity should be developed before any migration to Shapely 2.0 is undertaken. Perhaps a dict?
Graph raises the following deprecation warning when assigning ids to geometries for purposes of calculating adjacency:
... /gerrychain/graph/adjacency.py:21: ShapelyDeprecationWarning: Setting custom attributes on geometry objects is deprecated, and will raise an AttributeError in Shapely 2.0 geometries[i].id = I
Another method of tracking geometry identity should be developed before any migration to Shapely 2.0 is undertaken. Perhaps a dict?
Yep, this is an issue. Contributions are welcome!