Shapely Deprecation Warnings raised
Two ShapelyDeprecationWarnings
are raised regarding this line of method SpatialTools.get_quadtiles_in_bbox_of_polygon
, which says:
geometries = list(in_geometry)
Context:
if in_geometry.geom_type == "Polygon":
geometries = [in_geometry]
elif in_geometry.geom_type == "MultiPolygon":
geometries = list(in_geometry)
else:
raise OSError("get_quadtiles_in_bbox_of_polygon: argument is not a valid geometry")
The warnings raised are:
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.
and
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.
While we are using Shapely < 2.0, these are just warnings, but they need to be addressed in order to be able to use Shapely 2.0 in the future.