Tools/Net

= createRoundaboutConnections.py = This script generates additional connections for roundabouts from a given network. The following connections are added:


 * vehicles can stay inside of the roundabout on every lane.
 * vehicles can leave a roundabout even if they are driving on an inner lane if there are enough outgoing lanes.

= netcheck.py = This tool checks the network (first parameter) for weak connectivity (whether there is a route from every node to every other node, regardless of edge direction) and prints the connected components if not. If the second parameter is a route file, it additionally checks whether the routes cover the net completely (every edge of the net occurs in at least one route). Additionally you may run this script to discover which edges are reachable from a particular edge /tools/net/netcheck.py  --source  --selection-output selection.txt This will create a file called selection.txt which can be loaded in SUMO-GUI to visualize the portion of the network reachable from . To visualize the selection you must load the file using the menus Edit->Edit chosen. Then you need to enable edge coloring by selection status in the view settings dialog Street->Color by: selection. The reachable portion of the network will be colored differently from the unreachable portion which is usually sufficient to figure out network modelling errors.

= netextract.py = This tool extracts nodes and edges from a given network for their reuse in NETCONVERT.

= xmledges_applyOffset.py and xmlnodes_applyOffset.py = Both tools apply the given offset to the geometrical information of edges or nodes given in the input file. The results are written into .mod.xml or .mod.xml, respectively. xmledges_applyOffset.py    xmlnodes_applyOffset.py   
 * /: The edges/nodes file which content shall be shited
 * : The x-offset to apply
 * : The x-offset to apply

= xmlconnections_mapEdges.py = Reads edge id replacements from "edgemap.txt"; the format of this file is -><NEW_EDGE_ID> Reads the given connections file <CONNECTIONS> and replaces old edge names by new. The result is written to <CONNECTIONS>.mod.xml xmlconnections_mapEdges.py <CONNECTIONS>
 * <OLD_EDGE_ID>: Id of an edge as used within <CONNECTIONS>
 * <NEW_EDGE_ID>: Id of the edge as to use instead
 * <CONNECTIONS>: The connections file to change