This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

modify generate_tiles.py to create 512 x 512 tiles?

0

Hey folks, I'm wanting to mod generate_tiles.py to create 512 x 512 tiles. Googling around, I found this lonesome question, unanswered on a forum, but I share that poster's concern about blinding changing all 256's to 512's. Afterall, I see 256's in places throughout the file that seem unrelated to the tile size---like in the projection values and in the image type.

I could start a round of trial-an-error, changing 256's to 512's based on relatively-educated guesses, but I thought I'd poll the community first. Thanks!

asked 19 Dec '12, 14:56

elrobis's gravatar image

elrobis
41125
accept rate: 0%

(as you've probably done the "trial and error" by now)

Did it work?

(30 Jan '13, 12:25) SomeoneElse ♦
1

Here is the url btw: http://svn.openstreetmap.org/applications/rendering/mapnik/generate_tiles.py

I managed to get it working way back, but if it's hard you can have a look at generate_image.py in the same directory to see how to render images of arbitrary size. (I guess someone(else) should update that code to use render_size globaly)

(30 Jan '13, 14:17) emj

Source code available on GitHub .