<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Le mar. 13 févr. 2018 à 23:34, Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
Just wanted to raise discussion about a concern I have with the new<br>
"duplicate feature" / "duplicate feature and redigitize" actions which<br>
have been added for 3.0.<br>
<br>
While I like the functionality, I believe we should re-think the UX of<br>
how it is exposed in the QGIS interface.<br>
<br>
Currently, it's implemented as a "feature action", so appears in<br>
numerous places throughout the QGIS UI, including:<br>
- the actions drop down submenu on the toolbar<br>
- within the right click menu for the "identify tool"<br>
- under the "actions" heading in the identify results dock for a feature<br>
- in a menu bar at the top of the form shown after adding a new feature<br>
- as an entry within the right click menu in the attribute table<br>
<br>
So my initial concern is that exposing it in all these places is<br>
overkill and far too prominent for this operation. But my deeper<br>
concern is that these actions skip the edit buffer and directly alter<br>
layers in place, even when those layers are not made editable<br>
(<a href="https://issues.qgis.org/issues/17852" rel="noreferrer" target="_blank">https://issues.qgis.org/issues/17852</a>). So now we've got a menu item<br>
exposed in all these places which causes permanent changes to a layer,<br>
including in places which are not associated with editing at all (e.g.<br>
the identify tool right click menu).<br>
<br>
I'm also unsure what the actions would do in some contexts - e.g. if I<br>
create a new feature and then select "duplicate feature" in the popup<br>
form *before* this feature has even be finalized, what does it mean?<br>
<br>
I'd very much like to see this re-thought before our final release,<br>
and exposed in a more standard way via the advanced digitizing<br>
toolbar.</blockquote><div><br></div><div>I think it make some sense to design this as a map tool (if possible).</div><div>We don't have a simplify action, it's a map tool.</div><div><br></div><div>It could still be possible to add a custom action which will use the API to duplicate the feature (if one really wants this feature as an action in the form or attribute table or identify menu).</div><div><br></div><div>Enhancing the action API to define action on editable layers only sounds like a good addition too, but I think is not sufficient here (taking the simplify map tool as example).</div><div><br></div><div>My 2 cts. </div></div></div>