NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi, I am trying to Building Tiles with PostGIS OpenStreetMap data and Mapnik. I followed http://www.bostongis.com/PrinterFriendly.aspx?content_name=generating_osm_tiles

As I want to generate for Boston, I have created generate_tiles_boston.py

So when I run generate_tiles_boston.py script, I faced following error :

/usr/lib/pymodules/python2.7/mapnik2/init.py:27: DeprecationWarning: mapnik2 module has been deprecated,

    please use 'import mapnik'

warnings.warn(msg, DeprecationWarning)

render_tiles( (-71.2, 42.23, -70.99, 42.4) /root/svn.openstreetmap.org/applications/rendering/mapnik/osm-local.xml /root/osm/tiles/ 10 17 Boston )

Traceback (most recent call last):

File "./generate_tiles_boston.py", line 215, in <module> render_tiles(bbox, mapfile, tile_dir, 10, 17, "Boston")

File "./generate_tiles_boston.py", line 136, in render_tiles renderer = RenderThread(tile_dir, mapfile, queue, printLock, maxZoom)

File "./generate_tiles_boston.py", line 64, in init mapnik.load_map(self.m, mapfile, True)

RuntimeError: Could not load map file: File does not exist of '/root/svn.openstreetmap.org/applications/rendering/mapnik/osm-local.xml'

Any help would be kindly appreciated.

asked 27 Jun '14, 07:32

unnatip's gravatar image

unnatip
615510
accept rate: 0%

edited 27 Jun '14, 08:01


change path of osm.xml file in generate_tiles_boston.py Default path given in generate_tiles_boston.py is '/root/svn.openstreetmap.org/applications/rendering/mapnik/osm-local.xml' Hence it search xml file in this path. Instead of that use path to where your osm.xml file is locateed.

permanent link

answered 27 Jun '14, 08:05

unnatip's gravatar image

unnatip
615510
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×341
×134
×24
×8

question asked: 27 Jun '14, 07:32

question was seen: 10,140 times

last updated: 27 Jun '14, 08:05

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum