NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Suppose you have two points A and B and a line l between them. Further suppose that the underlying "real linear thing" that should be represented in OSM is a bit longer (shorter) than the current line l and you want to stretch it a bit, but keeping the direction fixed.

Speaking mathematically, you want to move point B to a point B'= A + (B-A)*r, r being a real number, r>0 (and r<>1 to exclude the identity transformation).

I don't care about r being too exact, but I want the direction (B-A) to be fixed. If I just move my point B with the mouse, it will always change the direction at least a bit. How can I keep it fixed?

asked 30 Dec '15, 22:17

Warden's gravatar image

accept rate: 0%

Another solution, IMHO more straightforward than Hendrikklaas and aseerel4c26's, is to switch to extrude mode (x) and then move the node while pressing Ctrl. Shows guidelines, and lets you choose between angles when the node is connected to more than one way segment.

permanent link

answered 04 Jan '16, 17:40

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
accept rate: 19%

There are plenty of cool moves possible in extrude mode, check the docs :)

(04 Jan '16, 17:41) Vincent de P... ♦

I never really tried it – only switched it on sometimes accidentally. Thanks, this looks really useful! :-) Pressing Ctrl before moving the node is the key. The non-Ctrl moves never seemed that useful to me.

(04 Jan '16, 19:56) aseerel4c26 ♦

a bit of a workaround I use often:

  • extension: select B and press key A on you keyboard twice. Then the angle snapping is active - you can easily select the 0° for placement of a new node. If you want to eliminate the original node, move it to B' and press the M key to merge both (the node id of B should be kept automatically). Screenshot just before the addition of B'.
  • contraction: just insert a new node by clicking (in insert mode) on the line between A and B. Again, merge if necessary.
permanent link

answered 31 Dec '15, 00:26

aseerel4c26's gravatar image

aseerel4c26 ♦
accept rate: 18%

edited 31 Dec '15, 00:29


Warden, Use JOSM to make this happen. Copy the old line and drop it beside. Draw an extra line twice as long as you want the new one to be. Position the line by using control + shift + mouse pointer to match the direction of the old one. (try it) Draw the new one over the extra one and if it matches your desires, delete the extra one and the copy you’ve made for the original direction. Or copy and paste your old line in your usual programm, put them next to each other and join them into one line.

permanent link

answered 31 Dec '15, 00:24

Hendrikklaas's gravatar image

accept rate: 5%

edited 31 Dec '15, 00:30

the question is about JOSM (see the tags and title prefix) @ "Use JOSM to make this happen"

(31 Dec '15, 00:26) aseerel4c26 ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 30 Dec '15, 22:17

question was seen: 5,341 times

last updated: 04 Jan '16, 19:59

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum