Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPKG table referenced by Id instead of layername #24801

Closed
qgib opened this issue Jul 21, 2017 · 3 comments
Closed

GPKG table referenced by Id instead of layername #24801

qgib opened this issue Jul 21, 2017 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers

Comments

@qgib
Copy link
Contributor

qgib commented Jul 21, 2017

Author Name: Emmanuel BELO (Emmanuel BELO)
Original Redmine Issue: 16902
Affected QGIS version: 2.18.10
Redmine category:data_provider/ogr


When you load a geopackage layer via Add Vector Layer, the table is referenced by it's ID
See Layer source in the layer properties, General Tab: my_gpkg.gpkg|layerid=8

This is an issue, because if one does a vacuum on the Geopackage, the layerid might change. In this case, your entire project might loose all layer references.

==
Contextual info: if you do: save layer as a geopackage, then the new added layer is referenced correctly by the tablename in the layer properties, general tab section: my_gpkg.gpkg|layername=my_layername

@qgib
Copy link
Contributor Author

qgib commented Jul 21, 2017

Author Name: Emmanuel BELO (Emmanuel BELO)


https://github.com/cmangeat should have a look at this issue next week, if we can provide a PR.

@qgib
Copy link
Contributor Author

qgib commented Aug 4, 2017

Author Name: Christophe Mangeat (Christophe Mangeat)


I was adviced to have a look at #4341 wich could have been a good basis for investigation (related issue, e.g.).

Didn't find a an angle of attack so far.

@qgib qgib closed this as completed Nov 10, 2017
@qgib
Copy link
Contributor Author

qgib commented Nov 10, 2017

Author Name: Even Rouault (@rouault)


This has been fixed in QGIS master per 1822b76


  • resolution was changed from to fixed/implemented
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant