This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

JOSM create node at midpoint of way without dragging the way

2

Hi

In JOSM is there a way to create a node precisely at the midpoint (cross) of a way?

Click on, & Dragging the cross to create it means it's not exactly at the midpoint or that the original way is exactly straight.

Draw Nodes removes the crosses.

asked 16 Nov '18, 18:04

DaveF's gravatar image

DaveF
3.3k8498133
accept rate: 16%

edited 18 Nov '18, 17:21

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

@DaveF: meta: Please could you mark an answer as accepted if it solves your problem.

(18 Nov '18, 17:22) aseerel4c26 ♦

3 Answers:

1
  1. The original line
  2. Add the node
  3. Select the whole line
  4. Press Shift+B or go to the menu Tools -> Distribute Nodes, so it will place it exactly in the middle.

The line will automatically be straightened, there is no need to straighten it before or afterwards.

(I just made this image for the Telegram group when someone linked this thread. Figured it might be helpful to post it here as well.)

answered 15 Aug '19, 23:59

Luc's gravatar image

Luc
411
accept rate: 100%

8

Just draw a new node (double-click) somewhere on the way then select the three nodes and press Shift+B. I think this is quicker than dragging the cross then re-aligning + distributing the nodes.

answered 17 Nov '18, 14:21

Privatemajory's gravatar image

Privatemajory
1.1k142233
accept rate: 23%

edited 17 Nov '18, 14:24

3

Typing E also selects adjacent nodes so if in [A]dd mode: double click on line, E, SHIFT+B.

(18 Nov '18, 22:42) InsertUser

2

You could drag the cross, then select the three nodes and use L to align them in a straight line and Shift-B to distribute them evenly. Not sure if there is a quicker way.

answered 16 Nov '18, 18:30

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

Source code available on GitHub .