On Thu, 2011-01-27 at 11:26 +0900, Jin Kang wrote:
> Hello,
>
>
> This is Jin from Rainbow Japan and our engineer is trying to render
> Japanese map as below but looks like it took quite time. Our engineer
> tried to render using "generate_tiles.py" bbox = (112.73, 20.2,
> 154.19, 45.71) area in mapnik but it took more than 1 hour to render
> this 1 tile alone. We would like to know whether this is normal. Your
> comments will be appreciated as usual.
>
The 'generate_tiles.py' script does not just create a single tile but
lots of tiles across multiple zoom levels. It is hard to say how long
this is expected to take unless you also say what range of zoom levels
you are rendering.
I just tried the following parameters on the main OSM tile server and it
rendered 955 tiles in 8 minutes using 4 threads.
bbox = (112.73, 20.2, 154.19, 45.71)
render_tiles(bbox, mapfile, tile_dir, 0, 8, "Japan")
The rendering of the OSM data in Japan was significantly slowed down by
the recent addition of a relation (id=1337942) describing a very large
natural=wood polygon. This has about 100,000 nodes in the outer ways and
another 100,000 nodes for the inner ways. This covers a large area and
Mapnik needs to process this relation for every tile inside this area.
You might want to try temporarily removing this polygon from your
database to see what effect it has on the rendering speed:
$ psql gis
...
=> delete from planet_osm_polygon where osm_id=-1337942;
Jon
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users