[QGIS-Developer] Geopackage as QGIS mapserver datasource failing?

Richard Duivenvoorde rdmailings at duif.net
Wed Nov 6 00:55:21 PST 2019


Hi,

I'm trying to get QGIS mapserver (master) here. All fine, untill I add a 
Geopackage to the project.
Both with a simple gpkg (as in: create a polygon gpkg without any 
attributes in QGIS) as in a more complex gpkg (the one I started with: 2 
tables and a view).

GetCapabilities show:

<ServerException>Layer(s) not valid</ServerException>

Both gpkg's load/show fine in QGIS itself

Relevant log part (I think):

../src/core/qgsproject.cpp:1225 : (readProjectFile) [2ms] 43 properties 
read
../src/core/qgsvectorlayer.cpp:1455 : (readXml) [3ms] Datasource in 
QgsVectorLayer::readXml: /tmp/blaat.gpkg|layername=blaat
../src/core/providers/ogr/qgsogrprovider.cpp:475 : (QgsOgrProvider) 
[1ms] Data source uri is [/tmp/blaat.gpkg|layername=blaat]
../src/core/providers/ogr/qgsogrprovider.cpp:273 : (AnalyzeURI) [0ms] 
Data source uri is [/tmp/blaat.gpkg|layername=blaat]
../src/core/providers/ogr/qgsogrprovider.cpp:4369 : (open) [0ms] 
mFilePath: /tmp/blaat.gpkg
../src/core/providers/ogr/qgsogrprovider.cpp:4370 : (open) [0ms] 
mLayerIndex: 0
../src/core/providers/ogr/qgsogrprovider.cpp:4371 : (open) [0ms] 
mLayerName: blaat
../src/core/providers/ogr/qgsogrprovider.cpp:4372 : (open) [0ms] 
mSubsetString:
../src/core/providers/ogr/qgsogrprovider.cpp:4425 : (open) [0ms] OGR 
failed to opened in update mode, trying in read-only mode
../src/core/qgsmessagelog.cpp:29 : (logMessage) [0ms] 
2019-11-06T09:46:34 OGR[1] Cannot open /tmp/blaat.gpkg.()
../src/core/qgsvectorlayer.cpp:1684 : (setDataProvider) [0ms] 
Instantiated the data provider plugin
../src/core/qgsvectorlayer.cpp:1689 : (setDataProvider) [0ms] Invalid 
provider plugin /tmp/blaat.gpkg|layername=blaat
../src/core/qgsvectorlayer.cpp:1490 : (readXml) [0ms] Could not set data 
provider for layer /tmp/blaat.gpkg|layername=blaat
../src/core/qgsvectorlayer.cpp:2091 : (readSymbology) [0ms] 
contextproject:layers:blaat_7cda99cd_6a97_4738_8e95_c0368d244004:fieldaliases 
source fid
../src/core/qgsvectorlayer.cpp:2097 : (readSymbology) [0ms] field fid 
origalias  trans
../src/core/qgsproject.cpp:1061 : (addLayer) [1ms] Unable to load vector 
layer

Should I create an issue?

Regards,

Richard Duivenvoorde



More information about the QGIS-Developer mailing list