-
-
Save nyampire/d16c7f4f03834790be83 to your computer and use it in GitHub Desktop.
ogr2osm translation file for Uganda administration boundary. (very rough)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
def filterTags(attrs): | |
if not attrs: | |
return | |
tags = {} | |
# Tags for every Object | |
tags.update({'boundary':'administrative'}) | |
tags.update({'admin_level':'2'}) | |
tags.update({'place':'city'}) | |
# name tag from "SUM_REGION" column | |
if attrs['SUB_REGION']: | |
tags.update({'name':attrs['SUB_REGION']}) | |
else: | |
pass | |
return tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment