You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Author Name: Peteris Bruns (@peterisb)
Original Redmine Issue: 16974
Redmine category:editing
Assignee: Giovanni Manghi
In case when merged geometry type does not match layer geometry type warning should appear already in Merge Selected Features dialogue, not after several 10 object merge on Save receive surprise message. This makes bad user experience since in message is not possible to identify wrong geometry/feature.
Solution would be to warn user already in Merge Selected Features dialogue in case when merged feature final geometry type is not equal to target layer geometry type.
As in example.png
ShapeFile/PostGIS layer with geometry type LineString.
several Linestring features.
try to merge 2 features without common start/end points, result is MultiLineString (in dialogue should be as minimum warning, probably disabled OK button while resulting geometry is not compatible with target layer geometry type)
In cases when user has merged several features, a+b=a Linestring, c+d=c Multilinestring on save both changes from QGIS is received message
"Could not commit changes to layer LineString Layer Errors: ERROR: 2 feature(s) not added - geometry type is not compatible with the current layer." but this message does not help to identify wrong feature and fix it. Usually user cancels edit and loses all work without save and repeats feature merge again while faces the problematic features and fixes.
In fact in QGIS 2.14 trying to create a multi part geometry in a non multi part layer resulted in CLEAR message BEFORE the user clicked on "save edits".
Testing with QGIS 2.18.11, linestring layer (GPKG, ESRI ShapeFile, memory layer). Attached data example and video.
First merges is OK, the 2nd is buggy.
In this case is visually clear wich merge is buggy, but if user has made several, 10 and more, similar merge actions before save, then from save message is impossible to identify where is bug. Cancel all edits and start again.
Author Name: Peteris Bruns (@peterisb)
Original Redmine Issue: 16974
Redmine category:editing
Assignee: Giovanni Manghi
In case when merged geometry type does not match layer geometry type warning should appear already in Merge Selected Features dialogue, not after several 10 object merge on Save receive surprise message. This makes bad user experience since in message is not possible to identify wrong geometry/feature.
Solution would be to warn user already in Merge Selected Features dialogue in case when merged feature final geometry type is not equal to target layer geometry type.
As in example.png
In cases when user has merged several features, a+b=a Linestring, c+d=c Multilinestring on save both changes from QGIS is received message
"Could not commit changes to layer LineString Layer Errors: ERROR: 2 feature(s) not added - geometry type is not compatible with the current layer." but this message does not help to identify wrong feature and fix it. Usually user cancels edit and loses all work without save and repeats feature merge again while faces the problematic features and fixes.
Related to issues #23663 #24691
The text was updated successfully, but these errors were encountered: