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

Creating PNG tiles for all zoom levels

2

I wish to make a local copy of 256x256 tiles for my country at all zoom levels. This is for use with a Rohde & Schwarz PR100 receiver. There is freely available software from Rohde & Schwarz which downloads the tiles from OSM and places them in separate folders depending on zoom level - http://www2.rohde-schwarz.com/en/products/radiomonitoring/receivers/PR100-|-Software-|-24-|-5286.html.

However I want to be able to generate these tiles myself locally as using data from a .osm.bz2 file as using the above software is time consuming and is obviously a strain on the OSMs servers.

What is the most straight forward way of achieving this? I have PostgreSQL with PostGIS and HOTOSM with Mapnik installed.

asked 06 Sep '11, 09:04

hurleytom's gravatar image

hurleytom
31112
accept rate: 0%

1

Just as a brief comment: thank you for being considerate to the OSM servers!

(09 Sep '11, 09:11) Richard ♦

2 Answers:

3

You can use the python script generate_tiles.py which is in the mapnik distribution to batch render areas. Another (more complicated) approach is using tile-server tools like renderd or tirex. You can find more information in the osm wiki, e.g. here and here.

answered 06 Sep '11, 11:30

dieterdreist's gravatar image

dieterdreist
3.7k113567
accept rate: 3%

edited 06 Sep '11, 11:34

1

One way to do this is to use Maperitive (depending on the size of the country): Maperitive Tutorial: A Hiking Web Map In Ten Easy Steps.

answered 09 Sep '11, 08:34

Breki's gravatar image

Breki
2.0k51843
accept rate: 10%

Source code available on GitHub .