I can create a power line with power poles using Level0 the following way. It involves uploading in 2 changesets: one for creating nodes, and another one for creating the way from the nodes. I would like to know how can I achieve the same result with 1 changeset only.
Step 1: create the nodes
Content of the main text field in Level0:
node: 62.01851667,7.65085645
power = pole
node: 62.01850695,7.65179617
power = pole
How could I have done this simpler? I would like to go from knowing the (ordered) coordinate pairs of power poles and that there is a power=minor_line connecting them to this info being uploaded to OSM with a single changeset using Level0.
I use Level0 regularly for editing coordinates and key=value, I asked myself this same question a while ago.
As you know, a way is composed of the ID of the node between which it runs; when you are creating a node you do not yet know what ID osm will assign to it, so you first created the nodes, queried the ID and then created the way with the node IDs.
Now comes the interesting part, OSM editors assign a number to each node to identify them before uploading the CS to osm.
I believe that if you know the node ID that Level0 temporarily assigns, you should be able to create the nodes and the way in a single CS.
Create the nodes and their key=value.
Use the button “Shows osmChange” which is located above the text box.
The node information and its temporary ID will be displayed at the bottom of the screen (I’m using my mobile). You will be able to see the temporary ID assigned by Level0, something like =
Create the way with the node IDs (ID temporarily assigned by Level0 before uploading to OSM). Basically you have to do the same thing you already did but with temporary IDs.
P.S. I’ve never done this, I was just curious if someone else might be wondering the same thing as me. If the trick works please let me know.
Using the same information shown by you, it should be something similar to=
node: 62.01851667,7.65085645
power = pole
node: 62.01850695,7.65179617
power = pole
way
power = minor_line
nd -1
nd -2
Incidentally, I tried something like this yesterday for a newly created route_master relation that needed to contain two newly created route relations, but the OSM API balked because of the references to negative relation IDs. I wonder if there’s something different about how relations are handled by the API versus nodes that might be causing this problem. Anyhow, this is the right answer when it comes to the nodes of a way.