Difference between revisions of "Tools/Import/OSM"

From Sumo
Jump to navigation Jump to search
(moved and renamed script)
(notes on usage)
Line 2: Line 2:
 
= osmWebWizard.py <span id="server.py"></span> =
 
= osmWebWizard.py <span id="server.py"></span> =
 
This script opens a webbrowser and allows selecting a geographic region on a map. It also provides some controls for specifying random traffic demand for different traffic modes.
 
This script opens a webbrowser and allows selecting a geographic region on a map. It also provides some controls for specifying random traffic demand for different traffic modes.
When clicking the 'Generate'-button, the simulation network for the selected area is build based on [[Networks/Import/OpenStreetMap|OSM data]], random demand is generated and [[SUMO-GUI]] is started.
+
When clicking the 'Generate'-button, the simulation network for the selected area is build based on [[Networks/Import/OpenStreetMap|OSM data]], random demand is generated and [[SUMO-GUI]] is started.
 +
 
 +
All files that make up the scenario are created in a subfolder of the working directory with the current timestamp (i.e. {{SUMO}}/tools/2016-09-30-10-00-00/). If you edit the network, you can use the script ''build.bat'' to rebuilt the random demand.
  
 
Call:
 
Call:
 
  python {{SUMO}}/tools/osmWebWizard.py
 
  python {{SUMO}}/tools/osmWebWizard.py
 +
 +
The script will keep running so you can build multiple scenarios in your web-browser. Stop the script when you're done to free up the port again.
  
 
{{Caution|The script requires the environment varialbe ''SUMO_HOME'' to be set [[Basics/Basic_Computer_Skills#Additional_Environment_Variables|as explained here.]]}}
 
{{Caution|The script requires the environment varialbe ''SUMO_HOME'' to be set [[Basics/Basic_Computer_Skills#Additional_Environment_Variables|as explained here.]]}}

Revision as of 06:48, 30 September 2016

osmWebWizard.py

This script opens a webbrowser and allows selecting a geographic region on a map. It also provides some controls for specifying random traffic demand for different traffic modes. When clicking the 'Generate'-button, the simulation network for the selected area is build based on OSM data, random demand is generated and SUMO-GUI is started.

All files that make up the scenario are created in a subfolder of the working directory with the current timestamp (i.e. <SUMO_HOME>/tools/2016-09-30-10-00-00/). If you edit the network, you can use the script build.bat to rebuilt the random demand.

Call:

python <SUMO_HOME>/tools/osmWebWizard.py

The script will keep running so you can build multiple scenarios in your web-browser. Stop the script when you're done to free up the port again.

Caution:
The script requires the environment varialbe SUMO_HOME to be set as explained here.