Simple Java application to convert OSM files to MATSim network format, using MATSim APIs. Based on section 7.2.1 from the book and on the RunPNetworkGenerator example..
A system with Docker installed for converting OSM files into Matsim network files. Java for network visualization and editing with networkEditor.
-
Download the broad map files from http://download.geofabrik.de/
-
Extract the desired bounding box from the larger file:
./vendor/osmosis/bin/osmosis --rb file=south-america-latest.osm.pbf \
--bounding-box top=-23.5948 left=-46.6807 bottom=-23.5984 right=-46.6736 \
completeWays=true --used-node --write-xml fiandeiras.osm
- Build the converter:
./bin/build.sh
- Convert:
./bin/convert.sh input/fiandeiras.osm output/fiandeiras.xml
- (Optional) Visualize and edit network:
./bin/edit_network.sh
To avoid issues with different jdk versions.
Project too simple to justify this tools. We rely on javac
and java
with manually set classpaths.