You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm on the process to build the .xml files to feed to Mapnik.
I succeed to build the slopes.xml file, but I get an error when trying to build the file for hiking layer :
$ wmt-makedb hiking mapstyle > hiking.xml
Traceback (most recent call last):
File "/home/wmtenv/bin/wmt-makedb", line 251, in <module>
exit(action())
File "/home/wmtenv/bin/wmt-makedb", line 167, in mapstyle
print(env.get_template(f'{self.mapdb.site_config.MAPTYPE}.xml.jinja').render())
File "/usr/local/lib/python3.7/dist-packages/jinja2/environment.py", line 989, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python3.7/dist-packages/jinja2/environment.py", line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "/home/wmtenv/lib/python3.7/site-packages/wmt_db/data/map-styles/routes.xml.jinja", line 2, in top-level template code
{% extends "base_map.xml.jinja" %}
File "/home/wmtenv/lib/python3.7/site-packages/wmt_db/data/map-styles/base_map.xml.jinja", line 57, in top-level template code
{% block content %}{% endblock %}
File "/home/wmtenv/lib/python3.7/site-packages/wmt_db/data/map-styles/routes.xml.jinja", line 5, in block "content"
{% include "inc/routes-worldview.jinja" %}
File "/home/wmtenv/lib/python3.7/site-packages/wmt_db/data/map-styles/inc/routes-worldview.jinja", line 4, in top-level template code
{{ style.line(color.INT, width="1.3") }}
File "/usr/local/lib/python3.7/dist-packages/jinja2/environment.py", line 408, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'style' is undefined
I got a hiking.xml file at the end of execution, but the contents if empty.
Do you have any ideas about this error ? It seems to reference the style property in routes-worldview.jinja, but I have no idea why the style is undefined in my case.
The text was updated successfully, but these errors were encountered:
Hello,
I'm on the process to build the .xml files to feed to Mapnik.
I succeed to build the
slopes.xml
file, but I get an error when trying to build the file forhiking
layer :I got a
hiking.xml
file at the end of execution, but the contents if empty.Do you have any ideas about this error ? It seems to reference the style property in
routes-worldview.jinja
, but I have no idea why the style is undefined in my case.The text was updated successfully, but these errors were encountered: