My python plugin should create a table without geometry in a gpkg to store some additional (meta) info about the layers. I could use python bindings for sqlite of course, but the plugin users might not have that installed.

What are the options from within qgis? Is python-sqlite available, or can I run sql queries in antother way? Or can I create a table similar to creating a new maplayer?

My (ugly) solution would be creating a point layer and use that attribute table and storing POINT(0 0) as geometries.
Or even worse, creating a .csv sidecar file for my gpkg.

Hope anyone here knows a better solution!

Regards,
Raymond
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to