I have a geotiff generated with togeo.py, and when I put it through gdal2tile.py, the .pngs flip upside down.
I don’t mean that tiles on the north appear on the south — I know that’s just a matter of setting tms to true in Leaflet — I mean the actual .png files are upside down.
Yet the geotiff displays correctly in Tilemill.
— edit
Just figured it out. Had to add “-p raster” to the gdal2tile command. Example:
gdal2tiles.py your_input_file.tif -p raster test_tiles