Python generator for MATSim signals xml files.

Florian 0b61f31cb5 xml namespaces 7 年之前
input f4b6e4ab1d first commit 7 年之前
README.md cbc9b51768 readme 7 年之前
signals_gen.py 0b61f31cb5 xml namespaces 7 年之前

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