3

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?

  • 1
    There seems to be "tileSize=256" in many places of the script. Try to use 512 instead and see what it breaks. The current code is trac.osgeo.org/gdal/browser/trunk/gdal/swig/python/scripts/… – user30184 Aug 28 '14 at 9:13
  • Thank for answer.I tried that already.the result is picture size was changed only but i mean 512px is picture should have more quality than 256px(more zoom level) and i'm not understand the whole code in that. – user3736776 Aug 28 '14 at 9:26
2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.