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
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