- in Geo Editor fixed another Shapely deprecation warning in flatten() method

This commit is contained in:
Marius Stanciu
2021-10-15 01:51:50 +03:00
committed by Marius
parent 156ffb23ed
commit 205e6a4ae0
2 changed files with 7 additions and 1 deletions

View File

@@ -6021,7 +6021,12 @@ class AppGeoEditor(QtCore.QObject):
# ## If iterable, expand recursively.
try:
for geo in geometry:
if isinstance(geometry, (MultiPolygon, MultiLineString)):
work_geo = geometry.geoms
else:
work_geo = geometry
for geo in work_geo:
if geo is not None:
self.flatten(geometry=geo,
orient_val=orient_val,