- fixed some issues in the ncc Tcl command

This commit is contained in:
Marius Stanciu
2022-01-29 22:21:32 +02:00
committed by Marius
parent a29d18bd12
commit 1467c5e0bc
3 changed files with 25 additions and 22 deletions

View File

@@ -1475,7 +1475,7 @@ class Geometry(object):
# current can be a MultiPolygon
try:
for p in current:
for p in current.geoms:
geoms.insert(p.exterior)
for i in p.interiors:
geoms.insert(i)
@@ -1483,7 +1483,7 @@ class Geometry(object):
self.plot_temp_shapes(p)
# Not a Multipolygon. Must be a Polygon
except TypeError:
except (TypeError, AttributeError):
geoms.insert(current.exterior)
if prog_plot:
self.plot_temp_shapes(current.exterior)