[GIS] Use Gdal2tiles to generate 512px tiles

gdalgdal2tilesgenerate-tiles

I'm a newbie in gdal2tiles & python but I would like to modify gdal2tiles to create 512px tiles for retina display (screen).

Can someone suggest how I can do this?

Best Answer

This is an old question, but I needed the same thing and found a solution. I modified the gdal2tiles.py file (as suggested by user30184). After changing all of the "256" values in the code to "512", I found that the modified gdal2tiles script did create the tiles in 512x512 resolution. I also tested this using MapBox and confirmed that the higher resolution tiles do display properly.