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,
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 |
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. answered 27 Jun '14, 08:05 unnatip |