[osm] adding type/id to properties dict earlier in the pipeline

This commit is contained in:
Al
2016-10-05 00:53:32 -04:00
parent 6081df0cd1
commit b1cd7fdc4a

View File

@@ -75,6 +75,9 @@ def parse_osm(filename, allowed_types=ALL_OSM_TAGS, dependencies=False):
if item_type in allowed_types:
attrs = OrderedDict(elem.attrib)
attrs['type'] = item_type
attrs['id'] = elem_id
top_level_attrs = set(attrs)
deps = [] if dependencies else None