[QGIS-Developer] Geopackage as QGIS mapserver datasource failing?
Alessandro Pasotti
apasotti at gmail.com
Wed Nov 6 01:00:18 PST 2019
On Wed, Nov 6, 2019 at 9:55 AM Richard Duivenvoorde <rdmailings at duif.net>
wrote:
> 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?
>
>
Hi Richard,
I suspect something local is going on there, we have many server tests in
Travis that use GPKG as a data source and there are no issues.
But yes, you can definitely file an issue and attach the failing GPKG +
project.
--
Alessandro Pasotti
w3: www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20191106/9d1b6ccc/attachment-0001.html>
More information about the QGIS-Developer
mailing list