[QGIS-Developer] Geopackage as QGIS mapserver datasource failing?
Jorge Gustavo Rocha
jgr at di.uminho.pt
Wed Nov 6 01:27:19 PST 2019
Hi Richard,
> failed to opened in update mode, trying in read-only mode
The file is on /tmp. Why can't QGIS open it in write mode? Can you check
the permissions?
Best regards,
Jorge
Às 08:55 de 06/11/19, Richard Duivenvoorde escreveu:
> 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
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
J. Gustavo
--
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Gabinete 3.29 (Piso 3)
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
More information about the QGIS-Developer
mailing list