- more Shapely deprecations fixes

This commit is contained in:
Marius Stanciu
2021-09-21 20:16:44 +03:00
committed by Marius
parent 734398d460
commit 548b5c2e28
3 changed files with 8 additions and 4 deletions

View File

@@ -1641,9 +1641,11 @@ class Gerber(Geometry):
except TypeError:
buff_length = 1
try:
if isinstance(self.solid_geometry, MultiPolygon):
sol_geo_length = len(self.solid_geometry.geoms)
elif isinstance(self.solid_geometry, list):
sol_geo_length = len(self.solid_geometry)
except TypeError:
else:
sol_geo_length = 1
try: