[QGIS-Developer] how to add mbtiles data
weskerjiang at sina.cn
weskerjiang at sina.cn
Wed Mar 28 19:39:28 PDT 2018
I'm creating an standalone application with QGIS 3.0,I want to add mbtiles data,I use
QgsRasterLayer *layer = new QgsRasterLayer(filePath,fileName,"gdal");
but layer->isValid() is false,the error has two messages
1.Cannot open GDAL dataset, "c:\XXXXXX\*.mbtiles" not recognized as a supported file format.
2.Provider is not valid(provider:gdal)
so what's wrong with it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180329/7a8bf00e/attachment.html>
More information about the QGIS-Developer
mailing list