Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

gdal2tiles flipping tile .pngs upside down [closed]

$
0
0

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


Viewing all articles
Browse latest Browse all 397

Trending Articles