# -*- coding: utf-8 -*- was added to line 1 due to this error when testing:
Traceback (most recent call last):
File "../Desktop/test_hier_build.py", line 6, in <module>
import export
File "../py-mapzen-whosonfirst-export/mapzen/whosonfirst/export/__init__.py", line 273
SyntaxError: Non-ASCII character '\xe2' in file /../py-mapzen-whosonfirst-export/mapzen/whosonfirst/export/__init__.py on line 273, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Fixes #12.
I tested this change locally with files that had a
wof:placetype_alt
property.The new logic will place the
wof:placetype_alt
placetype into a record'swof:hierarchy
, with a value equal to that record's placetype.For example, if a locality record has a
wof:placetype_alt
of "neighbourhood", thewof:hierarchy
would change from:to:
# -*- coding: utf-8 -*-
was added to line 1 due to this error when testing: