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

Overpass query to find nodes of a way that I’ve modified

0

Could I get some help with the syntax of an Overpass query? I modified an administrative boundary when adding a stream that borders that boundary. I thought I was careful to not join any nodes between the boundary way and the stream way and on checking in the iD editor I don't see any. So I'm trying to figure out the syntax of an Overpass query that would help me find the nodes in the boundary way that I may have changed inadvertently. I've tried the following but it doesn't give me the intersection of the nodes I've changed that are also part of the boundary.

( way"name"="name of admin boundary"; node(user:"myuserid"); );

thanks much!

asked 29 Aug '21, 03:45

mccarbc's gravatar image

mccarbc
31446
accept rate: 0%


One Answer:

0

I figured out the answer, I needed to do the node recursion. Here is the final query that I used.

[out:json][timeout:25];
// gather results
(
   way["name"="name of admin boundary"]({{bbox}});
);

  node(w)(user:"myuserid");

// print results
out body;
>;
out skel qt;

answered 29 Aug '21, 06:09

mccarbc's gravatar image

mccarbc
31446
accept rate: 0%

Source code available on GitHub .