From 904cb7f4c14612404eb8dfeeb976a396a282156a Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 14 Jul 2016 16:35:08 -0400 Subject: [PATCH] [osm] Extract all members with role= as dependencies --- scripts/geodata/osm/extract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/geodata/osm/extract.py b/scripts/geodata/osm/extract.py index 45f6884e..fb37fb3b 100644 --- a/scripts/geodata/osm/extract.py +++ b/scripts/geodata/osm/extract.py @@ -84,8 +84,8 @@ def parse_osm(filename, allowed_types=ALL_OSM_TAGS, dependencies=False): deps.append(long(e.attrib['ref'])) elif dependencies and item_type == 'relation' and e.tag == 'member' and \ e.attrib.get('type') in ('way', 'relation') and \ - e.attrib.get('role') in ('inner', 'outer'): - deps.append((long(e.attrib['ref']), e.attrib.get('role'))) + 'role' in e.attrib: + deps.append((long(e.attrib['ref']), e.attrib['role'])) key = elem_id if single_type else '{}:{}'.format(item_type, elem_id) yield key, attrs, deps