fitodic / centerline

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

Setting custom attributes on geometry objects is deprecated, and will raise an AttributeError in Shapely 2.0 #29

Closed ogourgue closed 1 year ago

ogourgue commented 2 years ago

Recently, I started to get the following warnings while using centerline:

/Users/ogourgue/Library/Python/3.9/lib/python/site-packages/centerline-0.6.3-py3.9.egg/centerline/geometry.py:34: ShapelyDeprecationWarning: Setting custom attributes on geometry objects is deprecated, and will raise an AttributeError in Shapely 2.0 self._input_geometry = input_geometry /Users/ogourgue/Library/Python/3.9/lib/python/site-packages/centerline-0.6.3-py3.9.egg/centerline/geometry.py:35: ShapelyDeprecationWarning: Setting custom attributes on geometry objects is deprecated, and will raise an AttributeError in Shapely 2.0 self._interpolation_distance = abs(interpolation_distance) /Users/ogourgue/Library/Python/3.9/lib/python/site-packages/centerline-0.6.3-py3.9.egg/centerline/geometry.py:40: ShapelyDeprecationWarning: Setting custom attributes on geometry objects is deprecated, and will raise an AttributeError in Shapely 2.0 self._min_x, self._min_y = self._get_reduced_coordinates()

Is there a plan to update centerline to avoid this future error?