I
I
Ilya Voronkov2016-02-08 18:18:30
OpenStreetMap
Ilya Voronkov, 2016-02-08 18:18:30

Mapnik on Windows according to an article from habr. Where is the mistake?

Good afternoon!
I used the article https://habrahabr.ru/post/265329/ to deploy the local OSM database and generate tiles.
Everything was done according to the instructions. When trying to start creating tiles (generate_tiles.py). error:
PS F:\mapnik> python.exe .\generate_tiles.py
render_tiles( (26.51, 58.21, 35.89, 61.52) F:/mapnik/osm.xml F:/tiles_m/ 17 17 LO )
F:/// mapnik/inc/entities.xml.inc:9: parser warning : PEReference: %layers; not found
%layers;
^
Traceback (most recent call last):
File ".\generate_tiles.py", line 210, in
render_tiles(bbox, mapfile, tile_dir, 17, 17, "LO")
File ".\generate_tiles.py", line 136, in render_tiles
renderer = RenderThread(tile_dir, mapfile, queue, printLock, maxZoom)
File ".\generate_tiles.py", line 64, in __init__
mapnik.load_map(self.m, mapfile, True)
RuntimeError: XML document not well formed:
Entity ' datasource-settings' not defined at line 4066 of 'F:/mapnik/osm.xml'

What could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question