Bug report #19611
Cannot save selected features back to the same GeoPackage
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Alessandro Pasotti | ||
Category: | Data Provider/OGR | ||
Affected QGIS version: | 3.2.1 | Regression?: | No |
Operating System: | Windows 7, macOS 10.13.6 | Easy fix?: | No |
Pull Request or Patch supplied: | Yes | Resolution: | fixed/implemented |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 27438 |
Description
The "Save Selected Features As" operation fails if the destination layer is in the same GeoPackage as the source layer, even if they have different layer names. The error produced is:
Export to vector file failed. Error: Cannot overwrite a OGR layer in placeSteps to reproduce:
- Add a vector GeoPackage layer to the map.
- Select some features.
- Right-click the layer, and choose Export -> Save Selected Features As.
- Choose the source GeoPackage, and provide a different layer name.
- Click OK.
Associated revisions
[bugfix] Vector file writer: also check for layername before giving up
while (over)writing gpkg &C from vector file writer
With tests
Fixes #19611 - Cannot save selected features back to the same GeoPackage
History
#1 Updated by Alessandro Pasotti over 6 years ago
I'm afraid this is an GDAL/OGR issue. But I'll have a closer look.
#2 Updated by Alessandro Pasotti over 6 years ago
It's a QGIS issue.
#3 Updated by Alessandro Pasotti over 6 years ago
- Assignee set to Alessandro Pasotti
- Pull Request or Patch supplied changed from No to Yes
- Status changed from Open to In Progress
#4 Updated by Anonymous over 6 years ago
- % Done changed from 0 to 100
- Status changed from In Progress to Closed
Applied in changeset qgis|abc96ce2914caa0694071f4c3f173e56a1f4dfc3.
#5 Updated by Giovanni Manghi over 6 years ago
- Resolution set to fixed/implemented