User:Voludu2/Segment and node IDs View history

(annotation)
(roundabout preserves segment IDs, loses node ID.)
Line 82: Line 82:
|height=300
|height=300
|caption=All the segments are now joined at one junction.  The stationary node is retained for the junction node.  The node that was moved is deleted.
|caption=All the segments are now joined at one junction.  The stationary node is retained for the junction node.  The node that was moved is deleted.
|annotation=}}
{{User:Voludu2/AI4
|image=Segment node ids10.png
|image-width=600
|width=400
|image-top=-50
|height=300
|caption=Replacing a junction with a roundabout preserves the segment IDs, but the junction node ID is lost.  There is a new node where each of the segments joins the new roundabout
|annotation=}}
|annotation=}}

Revision as of 17:30, 22 October 2018

When you edit, you are often creating an deleting segments and nodes, even when you don't realize it.

If you take a moment to select the segments and nodes and look at their IDs in the left pane, you can see what is happening.

Here is what happened during an actual editing session.

Every segment is attached to two nodes - one node at each end of the segment.
At the junction, two segments are connected to the same node. There is exatly one node at a junction.
When a segment is highlighted and one end is dragged away from a node, A new node is automatically created on the segment that was just moved.
When a node is dragged and connected to another node, the "stationary" node (the one that didn't get dragged) is retained. The node that was moved is deleted.
When a segment is cut by connecting another segment somewhere in the middle,two new segments are created. The node from the end of the segment used for cutting becomes the node for the new junction
A segment is disconnected from the junction and gains a new node at the end
Another segment is disconnected from the junction
Two segments are joined. The node from the stationary segment is retained as the junction node and the node from the moving end of the other segment is deleted
If you select the junction of 2 segments and drag it to another node, both segments will have their ends dragged along with the junction
All the segments are now joined at one junction. The stationary node is retained for the junction node. The node that was moved is deleted.
Replacing a junction with a roundabout preserves the segment IDs, but the junction node ID is lost. There is a new node where each of the segments joins the new roundabout