Created
January 26, 2015 22:48
-
-
Save kburnham/d270210d20ec3489eb2d to your computer and use it in GitHub Desktop.
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
def count_tags(filename): | |
tags = {} | |
for item, elem in ET.iterparse(filename): | |
if elem.tag not in tags: | |
tags[elem.tag] = 1 | |
else: | |
tags[elem.tag] += 1 | |
return tags | |
tags = count_tags('austin_texas.osm') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment