NETEDIT
From 30.000 feet
NETEDIT is a graphical network editor.
- Purpose: create and modify SUMO networks
- System: portable (Linux/Windows is tested); opens a window
- Input (optional): road network definitions to import
- Output: A generated SUMO-road network; optionally also other outputs
- Programming Language: c++
Usage Description
NETEDIT is a visual network editor. It can be used to create networks from scratch and to modify all aspects of existing networks. With a powerful selection and highlighting interface it can also be used to debug network attributes. NETEDIT is built on top of NETCONVERT. As a general rule of thumb, anything NETCONVERT can do, NETEDIT can do as well. NETEDIT has unlimited undo/redo capabilities and thus allows editing mistakes to be quickly corrected. Editing commands are generally issued with a left-click (according to the current edit mode. The user interface closely follows that of SUMO-GUI. Additional keyboard hotkeys are documented in the Help menu.
Input
NETEDIT is a GUI-Application and inputs are chosen via menus. The following input formats are supported:
- SUMO-net files
- OSM-files
- NETCONVERT-configuration files
Output
- SUMO-net files
- plain-xml files
Edit Modes
NETEDIT is controlled via various editing modes. This serves to reduce the number of clicks. For example, in delete mode a click on any object deletes it.
Inspect
Inspect and modify attributes of edges, lanes and nodes. Modifications have to be confirmed by hitting <Enter>.
When inspecting an element that is selected along with multiple elements of the same type this move behaves differently:
- Only non-unique attributes are listed (i.e. lane-width but not lane-ID)
- If the elements differ in their attributes, the whole range of occurring values is shown
- All selected elements of the same type are modified at the same time when setting a new value
Create Edges
Create edges (and implicitly nodes)
Delete
Delete nodes (and all adjoining edges), single edges or geometry points.
Move
Move nodes by dragging with the left mouse button. Dragging edges creates or moves geometry points. Dragging a node on top of another node joins them into a single node.
Connect
Modify lane-to-lane connections. The first click selects the source lane and following clicks toggle the status of target lanes.
Select
Select network objects according to various criteria. Selected objects can be moved or deleted together. It is also possible to set attributes for all selected nodes (or all edges) at the same time using inspect mode.
The selection status of objects is toggled by left-clicking. When the select edges check-box is unset, lanes, ratherr than edges will be selected/deselected.
Junctions and lanes can also be selected by <ctrl>+<left click> regardless of editing mode
Modification Mode
The Modification Mode changes how a loaded selection is applied to the current selection. It can either be added, replaced, subtracted or intersected.
Match Attribute
The 'Match Attribute' controls allow to specify a set of objects by matching their attributes agains a given expression. When combining this set with the current selection, the Modificatiton Mode is also applied.
- Select an object type from the first input box
- Select an attribute from the second input box
- Enter a 'match expression' in the third input box and press <return>
Matching rules:
- The empty expression matches all objects
- For numerical attributes the match expression must consist of a comparison operator ('<', '>', '=') and a number.
- the attribute matches if the comparison between its attribute and the given number by the given operator evaluates to 'true'
- For string attributes the match expression must consist of a comparison operator (, '=', '!', '^') and a string.
- (no operator) matches if string is a substring of that object'ts attribute.
- '=' matches if string is an exact match.
- '!' matches if string is not a substring.
- '^' matches if string is not an exact match.
Examples:
- junction; id; 'foo' -> match all junctions that have 'foo' in their id
- edge; speed; '>10' -> match all edges with a speed above 10;
Traffic Lights
Set nodes to be controlled or uncontrolled by a traffic light. Edit all aspects of static signal plans. Visualizes a signal phase by coloring the controlled lane-to-lane connections according to the signal state. Editing signal states can be accomplished in either of the following ways:
- right-clicking one any controlled lane and picking a new state (color).
- right-clicking on any of the incoming lanes to change all controlled connections from that edge
- If the lane is currently selected, all connections from selected lanes incoming to the traffic light will be changed as well
- If the edge is currently selected, all connections from selected edges incoming to the traffic light will be changed as well
- If the check-box apply change to all phases is activated, all phases of the current plan will be affected
You can also change the state by editing the phase table directly.
Processing Menu Options
- Compute Junctions: recomputes the geometry and logic of all junctions. This is triggered automatically when entering nodes which require this information (Connect, Traffic Lights).
- Join Selected Junctions: joins the selected junctions into a single junction (See joining Nodes).
- Options: inspect and set all options. These are the same options that NETCONVERT accepts on the commandline or in a configuration.
Hotkeys
- <Button-Left>: Execute mode specific action
- <Button-Right>: Open context-menu
- <Button-Right-Drag>: Change zoom
- <Button-Left-Drag>: Move the view around (panning)
- in 'Move'-mode pointing at an edge: move or create geometry points
- in 'Move'-mode pointing at a node: move node
- in 'Move'-mode pointing at a selected object: move all selected nodes and edges including geometry. If both nodes of an edge are selected, move the whole geometry. Otherwise, move only the geometry near the cursor
- <ESC>
- in 'Create Edge'-mode: clear the currently selected source junction
- in 'Select'-mode: clear the currently selection; cancel rectangle selection
- in 'Connect'-mode: deselect current lane and cancel all changes
- in 'Traffic Light'-mode: revert changes to current traffic light
- when editing a junction shape: abort editing the current junction shape
- <DELETE>: delete all currently selected items
- <SHIFT>: in 'Select'-mode: hold <SHIFT> and drag the mouse for rectangle selection
- <CTRL>: in 'Create Edge'-mode, allow moving the view without defining junctions
- <Enter>
- in 'Inspect'-mode: confirm attribute changes
- in 'Connect'-mode: deselect current lane and save all changes
- in 'Traffic Light'-mode: save changes to current traffic light
- when editing a junction shape: save the current junction shape
Every edit mode can be selected with a hotkey. That hotkey is shown in front of the mode name. i.e. (i) Inspect has the hotkey i Pressing the hotkey for a mode when already in that mode toggles back to the previous mode.
In addition to these hotkeys, all hotkeys for moving and zooming in SUMO-GUI are supported.
Hint: Most menu commands are accessible via hotkey. The hotkey is shown right beside the command name.";
Popup-Menu Functions
Not all menu options have been documented yet
Edge
Lane
Junction
- Set custom shape: Allows drawing a custom junction shape via a #Modifiable Poly (see below).
Modifiable Poly
- Set custom shape: Apply this shape to the current junction
- Discard custom shape: Abort editing the current junction shape
- Simplify shape: Replace the current shape by a rectangle
- Remove geometry point: Remove the closest geometry point from the shape
Usage Examples
Reducing the extent of the network
- switch to selection mode
- enable the auto-select nodes checkbox in the top menu bar
- select the portion of the network you wish to keep (i.e. by holding <SHIFT> and performing a rectangle-selection)
- invert the selection with the Invert button
- delete the inverted selection using the <DELETE> key