[gdal-dev] mbtiles open failed
weskerjiang at sina.cn
weskerjiang at sina.cn
Tue Apr 3 20:03:34 PDT 2018
i download the gdal from osgeo4w,and i write a demo to open mbtiles file,my code is below
QString uri = "c:/test.mbtiles";
CPLErrorRest();
GDALDatasetH hDS = GDALOpen(uri.toUtf8().constData(),GA_ReadOnly);
if(!hDS)
{
.......
}
the CPLGetLastErrorMsg() shows the error "C:/test.mbtiles not recognized as a supported file format"
so what's wrong with it? the mbtiles file is good ,i can open it in QGIS 3.0
why it saies not supported?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180404/1746de6d/attachment.html>
More information about the gdal-dev
mailing list