Tools/District
generated on 2017-05-02 00:27:06.113200 from the wiki page for Tools/District for SUMO 0.30.0
districts2poly.py
Transform districts into polygons for visualization in SUMO-GUI. Using the options --hue, --saturation, --brightness the colors can be controlled. Each of these options supports values from [0, 1] as well as the special value random.
<SUMO_HOME>/tools/districts2poly.py myNet.net.xml myDistricts.rou.xml
Caution:
Only districts using the attribute edges are currently supported
Only districts using the attribute edges are currently supported
edgesInDistricts.py
Parsing a number of networks and taz (district) files with shapes this script writes a taz file with all the edges which are inside the relevant taz.
<SUMO_HOME>/tools/edgesInDistricts.py -n myNet.net.xml -t myDistricts.rou.xml
Call option --help for additional details.
generateBidiDistricts.py
Finds edges that are opposites of each other and puts them in a common district (TAZ). This can be used to improve routing in conjunction with trip attributes fromTaz and toTaz.
<SUMO_HOME>/tools/generateBidiDistricts.py myNet.net.xml
Call option --help for additional details.
This page was last modified on 2 March 2016, at 16:25.