- fixed some more Shapely 2.0 deprecation warnings

- fixed a message bug in the AppMain
This commit is contained in:
Marius Stanciu
2021-12-08 23:11:23 +02:00
committed by Marius
parent 20587eaec8
commit 24caaedac0
6 changed files with 56 additions and 17 deletions

View File

@@ -2131,7 +2131,8 @@ class CutOut(AppTool):
maxx = -Inf
maxy = -Inf
for k in obj:
work_geo = obj.geoms if isinstance(obj , (MultiPolygon, MultiLineString)) else obj
for k in work_geo:
minx_, miny_, maxx_, maxy_ = bounds_rec(k)
minx = min(minx, minx_)
miny = min(miny, miny_)