- in Geometry Editor, deleting a shape from the Table context menu will update now the plot

This commit is contained in:
Marius Stanciu
2021-09-02 15:33:31 +03:00
committed by Marius
parent 3ddb321dff
commit 585231ec51
2 changed files with 8 additions and 1 deletions

View File

@@ -4171,13 +4171,15 @@ class AppGeoEditor(QtCore.QObject):
if old_geo.geom_type == 'LineaRing':
processed_shapes.append(obj_shape)
new_shapes.append(LinearRing(list(old_geo.coords)[::-1]))
elif old_geo.geom_type == 'LineString':
processed_shapes.append(obj_shape)
new_shapes.append(LineString(list(old_geo.coords)[::-1]))
elif old_geo.geom_type == 'Polygon':
processed_shapes.append(obj_shape)
if old_geo.exterior.is_ccw is True:
new_shapes.append(deepcopy(orient(old_geo, -1)))
else:
new_shapes.append(deepcopy(orient(old_geo, 1)))
except ValueError:
pass
@@ -5019,6 +5021,7 @@ class AppGeoEditor(QtCore.QObject):
tempref = [s for s in self.selected]
for shape in tempref:
self.delete_shape(shape)
self.plot_all()
self.selected = []
self.build_ui()