How to extract and visualize data from OSM file in Python
问题 I have downloaded an OpenStreetMap file on my desktop , and I have used my OSM file in the jupyter notebook. My code: import xml.etree.cElementTree as ET osm_file = "ahmedabad_india.osm" for event, elem in ET.iterparse(osm_file, events=("start",)): print(elem) # prints the Element 'osm' at 0x03A7DC08> #<Element 'bounds' at 0x03A7DDA0> #<Element 'node' at 0x03A7DE90> #<Element 'tag' at 0x03A7DF08> and so on ... I'd like to see the contents of all the tags i.e. <'node', 'id', 'name', ...> and