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

How to render tiles for India Map

0

Dear Sir, I want to render tiles for India only. I tried India coordinates in generate_tiles.py. But it does not generate tiles. Currently, generate_tiles.py contains following lines. What should I change if I need tiles for India only.

bbox = (-180.0,-90.0, 180.0,90.0) render_tiles(bbox, mapfile, tile_dir, 0, 15, "India")

should required anything more to generate India Tiles ?

asked 05 Feb '12, 06:08

baban's gravatar image

baban
41447
accept rate: 0%

edited 06 Feb '12, 08:19

NicolasDumoulin's gravatar image

NicolasDumoulin
3.3k42256


One Answer:

3

First, a correct bbox for India should be (66.4,5.2,90.5,36.2).

Then, which procedure have you followed for your attempt? Have you installed mapnik? Have you downloaded OSM data, and imported it into pgsql? If not, you must read the mapnik documentation on the wiki. If you're aware of that, do you have any message output by the python script that can give us some hint for helping you?

answered 06 Feb '12, 08:18

NicolasDumoulin's gravatar image

NicolasDumoulin
3.3k42256
accept rate: 13%

edited 06 Feb '12, 11:16

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

2

To add to what NicolasDumoulin said, you might find that the "serving tiles" instructions at switch2osm might be a little easier to follow than the various wiki pages (which might not have been written with each other in mind).

(06 Feb '12, 11:19) SomeoneElse ♦

Source code available on GitHub .