You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ShapelyFeature class causes a deprecation warning from Shapely to appear.
Code to reproduce
Instantiate a ShapelyFeature.
Traceback
/home/chowingt/miniconda3/envs/GOS-env/lib/python3.9/site-packages/cartopy/feature/__init__.py:217: 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.
self._geoms = tuple(geometries)
/home/chowingt/miniconda3/envs/GOS-env/lib/python3.9/site-packages/cartopy/feature/__init__.py:217: ShapelyDeprecationWarning: __len__ for multi-part geometries is deprecated and will be removed in Shapely 2.0. Check the length of the `geoms` property instead to get the number of parts of a multi-part geometry.
self._geoms = tuple(geometries)
Description
The
ShapelyFeature
class causes a deprecation warning from Shapely to appear.Code to reproduce
Instantiate a
ShapelyFeature
.Traceback
Full environment definition
Operating system
Ubuntu 20.04.3
Cartopy version
0.20.2
conda list
The text was updated successfully, but these errors were encountered: