OSM
How to preprocess OSM before creating a MATSim network, additional info about OSM
Last updated
How to preprocess OSM before creating a MATSim network, additional info about OSM
Last updated
Chapter 17,
Download Czech Republic (.osm):
Use to extract Prague:
Polygons describing Prague (.geojson) - 57 districts:
Join the districts into one polygon: ./dissolve-polygon.py MAP_MESTSKECASTI_P.json prague-polygon.json
Run: osmium extract -p prague-polygon.json czech-republic-latest.osm.pbf -o prague.osm.pbf
Optionally convert to osm: osmium cat prague.osm.pbf -o prague.osm
Optional: Create a multimodal network (roads, pt, rails, ...) __
Allows to export only a small area!
Export OSM data (map.osm)
Compress using some tool to .osm.pbf (e. g. osmium-tool):
Use SupersonicOsmNetworkReader to change data to MATSim XML ( is deprecated)
Run NetworkSimplifier from MATSim - improves simulation performance, introduces artifacts
Run NetworkCleaner from MATSim
Main road with a bicycle lane
highway=?
and cycleway=lane
Bicycle lane on the sidewalk
highway=?
and cycleway=track
A bicycle track away from roads
highway=cycleway
To process the OSM file into a MATSim network correctly, the following tags must be used:
Refer to:
Bikes in MATSim: