kopia lustrzana https://github.com/osm2vectortiles/osm2vectortiles
Remove duplicate key value pairs
rodzic
bfa6b53889
commit
662c49b61e
|
@ -39,10 +39,11 @@ def find_tables(config):
|
|||
|
||||
|
||||
def find_tags(mapping_config):
|
||||
tags = defaultdict(list)
|
||||
tags = defaultdict(set)
|
||||
for table in find_tables(mapping_config):
|
||||
for osm_key, osm_values in table.mapping:
|
||||
tags[osm_key] += osm_values
|
||||
for osm_value in osm_values:
|
||||
tags[osm_key].add(osm_value)
|
||||
|
||||
return tags
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue