regions.py

changeset 109
88a5110b66ba
parent 88
3b86597c5a88
equal deleted inserted replaced
108:4b09d8a597f8 109:88a5110b66ba
34 if child.tag == 'way': 34 if child.tag == 'way':
35 way = parse_way(child, nodes = nodes) 35 way = parse_way(child, nodes = nodes)
36 if 'region' in way and 'name' in way: 36 if 'region' in way and 'name' in way:
37 way['priority'] = int(way.get('priority', 1)) 37 way['priority'] = int(way.get('priority', 1))
38 regions[way['name']] = way 38 regions[way['name']] = way
39 if 'external' in way:
40 way['priority'] = -1
39 return regions 41 return regions

mercurial