Bug report #4863
Should hidden layers be editable/selectable?
|Affected QGIS version:||2.0.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||no timely feedback|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||14693|
I was just confused when I thought I was editing a layer, but in fact I was dragging around features from identical features in a hidden layer underneath because that hidden layer was selected in the layer legend. I could see the hidden features selected when dragging them, which made me think I was dragging the corresponding visible feature, but then it seemed to snap back when I dropped it, whereas what was happening was that the hidden feature went hidden again. By the time I'd worked out what was happening I'd dragged four or five polygons on my hidden layer all over the place.
I can't think of any good use-case for wanting to edit layers that you have elected to not see. You hide them to get things out of the way, and simplify things. The only thing you should be able to do with a hidden layer is unhide it. I think maybe you shouldn't even be able to click and identify features in it either, which I think you can at the moment...
#5 Updated by Alessandro Sarretta over 4 years ago
I think a possible use case where to use this function is when editing very complex features that cause slow rendering when you pan the map; having a visible reference and light layer to edit something heavy behind could be maybe useful (never used anyway).
A possible solution could be to have a warning when one is editing a layer not visible in the canvas, so it is explicit and the user can check which layer is selected in the legend.
#9 Updated by Alex Hajnal almost 2 years ago
Being able to edit hidden layers is very useful when working with remote sensing data. Specifically, being able to see source data (aerial image, LIDAR relief, etc.) without it being obscured by the data being edited is invaluable.
I have a similar ticket open.