Python generator for MATSim signals xml files.

Florian 0b61f31cb5 xml namespaces 2 years ago
input f4b6e4ab1d first commit 2 years ago
README.md cbc9b51768 readme 2 years ago
signals_gen.py 0b61f31cb5 xml namespaces 2 years ago

README.md

signals_gen

Python generator for MATSim signals xml files

setup

prerequisites

softwares and data files

extracting data examples

Extract OpenStreetMap data with osmosis .osm (example for Calais):

cd osmosis/
./bin/osmosis --rbf nord-pas-de-calais-latest.osm.pbf --bounding-box top=50.9759 left=1.7965 bottom=50.9231 right=1.9222 --wx calais.osm

Extract traffic lights data .xml:

./bin/osmosis --rb file=calais.osm --tf accept-nodes highway=traffic_signals --wx signals.osm.xml

install

venv i signals_gen
venv a signals_gen
pip install lxml

usage

./signals_gen.py