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 |
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. answered 12 Jan '16, 10:39 Vincent de P... ♦ 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 answered 02 Feb '16, 21:44 AnyFile 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
|