I am trying to generate map tiles using gdal2tiles for an area much larger than MapTiler can handle. However, my tile caches are not showing up on the maps. I checked gdal2tiles by running the same file through it and MapTiler – and the outputs come out differently. Here's my gdal2tiles command:
/usr/local/Cellar/gdal/1.9.0/bin/gdal2tiles.py -p mercator –s_srs
3857 -z 1-9 -v myFile.tiff
For instance, in the maptiler output, I get the file
9/85/197.png
While gdal gives me different files, like
9/85/313.png
The output should be identical, right? Is there something I'm missing? My projection on the original file is definitely correct. I have also tried gdal2tiles with 900913. I am running gdal2tiles on MacOS X Mountain Lion, gdal 1.9.0.
Best Answer
It's because gdal2tiles generates the tiles in TMS format. You need to enable it on your map or do a small calculation on the fly in order to display the tiles.