[Edited to include example image outputs]
SE folks, I'm wanting to modify generate_tiles.py
to create 512 x 512 tiles.
At om_henners' recommendation, I tried replacing 12 of the 13 instances of 256
in the Python file (the 13th specifies the .PNG
image format). I've since tried a test run, and I can already tell something is wacky...
Replacing all the relevant 256's with 512's merely produces a larger tile, when the intended result is increased mapped-area per tile (I think it amounts to 4x coverage).
Posting the code isn't worthwhile becuase you can see it here, but it is worth noting this is the only line for which I did not change 256 to 512 between test runs:
im.save(tile_uri, 'png256') <-- the only 256 not changed to 512
So I'm getting these two outputs, and I have two curious observations:
1) The file address is the same. I would expect---if the mapped-area was changed between runs---the same location should fall into a different file, no?
2) Even though the mapped-area remained the same, the 512 tiles gained labels. Very interesting.
256x256 (%/8/61/97.png)
512x512 (%/8/61/97.png)
(And, I apologize for double-posting, but this question isn't getting any interest at help.OSM, and it seems at least one person at GIS.SE is okay with some of that traffic appearing here.)
Thanks in advance for the help!