Re: [gdal-dev] MBTiles creation problems on some iOS devices

2016-06-08 Thread gunnarblom
Some additional info. What is weird is that I now tried it on the most low end device, iPhone 4S with 512mb ram and that by default uses 25mb cache. It works pretty well, with some disk writing, but seems on healthy levels. The difference in patterns I see is that on iPad 3 it is writing "Flushed

Re: [gdal-dev] MBTiles creation problems on some iOS devices

2016-06-08 Thread gunnarblom
Thanks, appreciate the response! I tried it with CPL_DEBUG=ON, but it doesn't say anything about low disk space. Here are the logs, where you can see the writing behaviour differ a lot for an unknown reason. This is with GDAL_CACHEMAX on Auto. (I also tried limiting GDAL_CACHEMAX to 49mb on the

Re: [gdal-dev] MBTiles creation problems on some iOS devices

2016-06-08 Thread gunnarblom
Thanks, appreciate the response!I tried it with CPL_DEBUG=ON, but it doesn't say anything about low disk space.Here are the logs, where you can see the writing behaviour differ a lot for an unknown reason. This is with GDAL_CACHEMAX on Auto. (I also tried limiting GDAL_CACHEMAX to 49mb on the

[gdal-dev] MBTiles creation problems on some iOS devices

2016-06-07 Thread gunnarblom
Hi. I'm using GDALTranslate() in C++ to convert GTiffs (5k*5k pixels) to MBTiles (resulting size: ~60mb) on iOS. It works good on iPhone 6 (1GB ram), iPhone 6S (2GB ram, peaks GDAL usage at 160mb) and iPad Mini 3 (1GB ram) and takes around 1-3 minutes. But on e.g. iPhone 5S (1GB ram), iPad 3

Re: [gdal-dev] Questions about MBTiles write support @ GDAL 2.1 RC4

2016-05-03 Thread gunnarblom
GDALBuildOverviews() seems to works fine now, my bad. Thanks for the responses. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Questions-about-MBTiles-write-support-GDAL-2-1-RC4-tp5263684p5264135.html Sent from the GDAL - Dev mailing list archive at Nabble.com.

Re: [gdal-dev] Questions about MBTiles write support @ GDAL 2.1 RC4

2016-05-02 Thread gunnarblom
Even Rouault-2 wrote > Ah ok, you can generate overviews/zoom layers with gdaladdo / > GDALBuildOverviews(). I tried using GDALBuildOverviews() but it generates a separate .ovr file and does not include it in the MBTiles file, right? If I'm looking at the code, it seems like it is checking that

Re: [gdal-dev] Questions about MBTiles write support @ GDAL 2.1 RC4

2016-05-02 Thread gunnarblom
Even Rouault-2 wrote >> 1) When creating a MBTiles file, only one layer is written. Can you use >> GDAL to populate other layers? > > I'm not sure what you call "layer". AFAIK MBTiles files do not have a > concept > of storing tiles for different layers. (you could use GeoPackage for that) I'm