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

I want to load a relation into JOSM via the remote control and add a node to it. I am able to load the relation, add the node, but I am not able to add node to the relation.

Is there any possibility to do that?

asked 12 Jan '16, 01:00

gorn's gravatar image

accept rate: 11%

I'm guessing a bit here, but you should be able to do this with the load data command. Build the new relation object in josm xml format, url-encode it, and send it using remote control.

permanent link

answered 12 Jan '16, 10:39

Vincent%20de%20Phily's gravatar image

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

Yes, but there is no way to put the object INTO the relation.

(19 Nov '17, 12:29) gorn

If JOSM supports loading changes using the load data command, you should be able to (during preparation of the remote command) retrieve the current version of the relation and generate a JOSM format xml snippet that modifies the members of the relation.

To add the node to the relation you'd also have to include it in the snippet so that you could reference it in the new version of the relation. The id of the new object should just be a negative number, this tells JOSM to treat it as a new object in the layer.

(19 Nov '17, 13:51) maxerickson

You can load a relation via the load_object command.

In this page I also find add_node and add_way, but I can not find anything to add a member to a relation.

permanent link

answered 02 Feb '16, 21:44

AnyFile's gravatar image

accept rate: 0%

Yes, this is why I ask the questino here in the first place. I could not find it either.

(19 Nov '17, 12:28) gorn

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: 12 Jan '16, 01:00

question was seen: 3,196 times

last updated: 19 Nov '17, 13:51

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