You might also consider incorporating the mbtiles implementation of a fork of gdal2tiles that can be found here:
https://github.com/mj10777/gdal2mbtiles Here the goal was to also offer mbtiles as the output-format - instead of a tiles-directory It also offered options to use mbtiles as a source - to create a tiles-directory or a tiles-directory to create a mbtiles file. --- The created mbtiles file is based on the mbtiles-implementation of of the Geopaparazzi (Android) project - that also reads/creates mbtiles https://github.com/geopaparazzi/geopaparazzi/wiki/mbtiles-Implementation A major goal of this implementation was to avoid the creation of duplicate images inside the mbtiles file - which, depending on the input files, could save a lot of space The project itself was created so that the Geopaparazzi users could 'port' their tiles-directories to mbtiles - since the space needed on sdcard's for tiles-directories is very high and slow It was always the intention to incorporate this into gdal2tiles, but not being a Python expert/fan, I was always hoping that someone could take this over and maintain it. Mark Johnson, Berlin Germany
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev