Bug report #19758
Updated by Jürgen Fischer about 6 years ago
Here's how to reproduce the bug:
1. Add the 3 layers from the attached GeoPackage (pol.gpkg)
2. Open the merge vector layers tool in Processing, choose the 3 layers and save to a temporary layer
3. The resulting layer has features with the same fid, and hence can't be saved to a new GeoPackage without manually editing the fid values
4. Alternatively if you save directly to GeoPackage (instead of using a temporary layer), the tool produces a wrong output
A similar bug happens with other tools (see #19708). https://issues.qgis.org/issues/19708). This fid problem makes Processing almost unusable with GeoPackages.
1. Add the 3 layers from the attached GeoPackage (pol.gpkg)
2. Open the merge vector layers tool in Processing, choose the 3 layers and save to a temporary layer
3. The resulting layer has features with the same fid, and hence can't be saved to a new GeoPackage without manually editing the fid values
4. Alternatively if you save directly to GeoPackage (instead of using a temporary layer), the tool produces a wrong output
A similar bug happens with other tools (see #19708). https://issues.qgis.org/issues/19708). This fid problem makes Processing almost unusable with GeoPackages.