fitodic / centerline

Calculate the polygon's centerline
https://centerline.readthedocs.io
MIT License
266 stars 55 forks source link

ShapelyDeprecationWarning: Iteration over multi-part geometries is deprecated and will be removed in Shapely 2.0 #33

Closed theroggy closed 2 years ago

theroggy commented 2 years ago

This warning is triggered here, and as shapely 2.0 is already in alpha...:

~\.conda\envs\geofileopsdev\lib\site-packages\centerline\geometry.py:128: ShapelyDeprecationWarning: Iteration over multi-part geometries is deprecated and will be removed in Shapely 2.0. Use the `geoms` property to access the constituent parts of a multi-part geometry.
  return (polygon for polygon in self._input_geometry)