Thanks Nyall, will try this today!
Raymond
On 05-12-2022 00:53, Nyall Dawson wrote:
On Fri, 2 Dec 2022 at 23:05, Richard Duivenvoorde via QGIS-Developer
wrote:
Ok, I think I found the crux!
With your code QGIS 3.26 will CREATE a new geopackage... (if it is not there
yet)
After which QGIS
On Fri, 2 Dec 2022 at 23:05, Richard Duivenvoorde via QGIS-Developer
wrote:
>
> Ok, I think I found the crux!
>
> With your code QGIS 3.26 will CREATE a new geopackage... (if it is not there
> yet)
> After which QGIS master is fine
>
> BUT QGIS master apparently does NOT create a new geopackage w
Ok, I think I found the crux!
With your code QGIS 3.26 will CREATE a new geopackage... (if it is not there
yet)
After which QGIS master is fine
BUT QGIS master apparently does NOT create a new geopackage with your code...
So IF there is an excisting test.gpkg, all is fine
IF there is not one, i
Hi Raymond,
I've updated your test script a little:
gpkg_fn = '/tmp/test.gpkg'
try:
print(QgsProviderRegistry.instance().providerList())
md = QgsProviderRegistry.instance().providerMetadata('ogr')
print(f'md = {md}')
conn = md.createConnection(gpkg_fn, {})
print(f'conn = {con
No one having a clue? Should I create an issue?
Raymond
On 30-11-2022 18:08, Raymond Nijssen via QGIS-Developer wrote:
Hi developers,
Recently some users of my plugin started getting errors in the code that
creates a .gpkg file with a table. I wrote a piece of test code:
gpkg_fn = '/home/r
Hi developers,
Recently some users of my plugin started getting errors in the code that
creates a .gpkg file with a table. I wrote a piece of test code:
gpkg_fn = '/home/raymond/tmp/test.gpkg'
md = QgsProviderRegistry.instance().providerMetadata('ogr')
conn = md.createConnection(gpkg_fn, {})
f