Bug report #16027
Editing GeoPackage from DWG/DXF Import after Save as Layer Definition File
|Affected QGIS version:||2.18.2||Regression?:||No|
|Operating System:||Linux/Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||duplicate|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||23942|
After import a DWG with DWG/DXF Import, GeoPackage layers created can be edited by QGIS.
Saving the GeoPackage group (containing the DWG data) as Layer Definition File (to preserve the style and symbology), closing QGIS, and then adding the QLR file with 'Layer' -> 'Add from Layer Definition File...', the edit mode (Toggle Editing button) is disabled.
I've tested the same process (save and open as Layer Definition File) with other layers, and the edit mode works ok.
Tested on Linux and Win10, with QGIS 2.18.2.