Re: [gdal-dev] mbtiles open failed

2018-04-04 Thread Even Rouault
On mercredi 4 avril 2018 11:03:34 CEST weskerji...@sina.cn wrote: > 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(); You probably lack a call to GDALAllRegister(); here -- Spatialys - Geos

[gdal-dev] mbtiles open failed

2018-04-03 Thread weskerjiang
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.mbt