From 352d648649922c2ffb103880303e9a1af163de05 Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 17 Jul 2016 03:13:01 -0400 Subject: [PATCH] [fix] label properties for relations --- scripts/geodata/osm/admin_boundaries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/osm/admin_boundaries.py b/scripts/geodata/osm/admin_boundaries.py index 99e688dd..7379a457 100644 --- a/scripts/geodata/osm/admin_boundaries.py +++ b/scripts/geodata/osm/admin_boundaries.py @@ -271,7 +271,7 @@ class OSMPolygonReader(object): val['id'] = long(elem_id) admin_centers.append(val) elif role == 'label' and elem_type == 'node': - val = nodes.get(long(elem_id)) + val = self.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})