#Exporting OpenStreetMap roads to shapefile I’ve been having a bear of a time recently trying to get OpenStreetMap data into a usable format in QGIS or ArcGIS. Here’s what I did.
- Download the OpenStreetMap xml (.osm) from the OpenStreetMap.org Export window
- Open that file in JOSM (Java OpenStreetMap editor, it's free). Don’t add anything else, turn on imagery or download anything from within JOSM
- Select all and copy and paste that data into a new layer in JOSM (that erases all the ID numbers, which are causing the problem as they’re 64 bit and QGIS can’t handle 64 bit IDs)
- Save that layer out to a new .osm file
- If you don’t already have it, download the OpenStreetMap Plugin in QGIS (it's free)
- In QGIS, click Load OSM from File
- Check whatever features you need (doesn’t hurt to add them all)
And voila, you have OpenStreetMap data in point, line and polygon with all the attributes. Or at least all the ones I care need most, namely Name and highway type (residential, tertiary, etc.)
Then save that to shapefile and you are in business.