[osm] update properties of a relation with its label's properties

This commit is contained in:
Al
2016-07-15 19:41:07 -04:00
parent 54fc7b47de
commit 753d937b09

View File

@@ -270,6 +270,11 @@ class OSMPolygonReader(object):
val['type'] = 'node'
val['id'] = long(elem_id)
admin_centers.append(val)
elif role == 'label' and elem_type == 'node':
val = nodes.get(long(elem_id))
if val is not None:
props.update({k: v for k, v in six.iteritems(val)
if k not in props})
admin_center = {}
if len(admin_centers) == 1: