Sumo (Simulation of Urban Mobility) simulation 103 — a series

Downloading and using map that is bigger than the map export allowed on OpenStreetMap (> 50000 nodes)

Go to Geofabrik download server: https://download.geofabrik.de/

Browse to the continent >> country you want the map of

For example, I want the map of Stockholm Metropolitan Area (Sweden): Download sweden-latest.osm.pbf (https://download.geofabrik.de/europe/sweden.html)

Download osmconvert.exe (https://wiki.openstreetmap.org/wiki/Osmconvert#Download)

Make sure that the osmconvert.exe is placed in the same folder as the sweden-latest.osm.pbf file

I want the map of this area which is larger than 50000 nodes

Map of the required area with the bounding box

Enter these coordinates in the osm command like below:

osmconvert.exe sweden-latest.osm.pbf -b=14.409,58.347,20.726,60.587 -o=stockholmarea.osm

If you get memory error, use hash

Rewrite the command using hash:

osmconvert.exe sweden-latest.osm.pbf -b=14.409,58.347,20.726,60.587 -o=stockholmarea.osm — — hash-memory=720

To open the network in Sumo use netconvert to convert the .osm file into .net.xml file

Go to the directory with netconvert.exe or give the correct path to the exe:

netconvert.exe — — osm-files stockholmarea.osm -o stockholmarea.net.xml

Loading the map in Sumo:

Stockholm area map in Sumo

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store