I am querying objects with Overpass Turbo, which are restricted to a specific area. My problem is that the output always contains the relation itself, but I don't need it. It also is displayed on top of all nodes, so that I cannot see the nodes and ways in overpass turbo, but only the relation (see screenshot below). Can I somehow suppress the relation in the output (both the map and the JSON)? Here's my example. I would like to just have the nodes and ways.
asked 30 Aug '22, 08:37 guerda |
First off - there are no power generators in the area you're searching. https://overpass-turbo.eu/s/1ltI So let's use an adjacent post code. The problem was the inclusion of the area inside the union using curved brackets:
However these can be removed entirely by amalgamating the objects to search for (nw):
answered 30 Aug '22, 11:27 DaveF It looks like your solution works. My original code seems not to work indeed. Thank you for that!
(30 Aug '22, 17:18)
guerda
As soon as I use variables, my queries return different results, interesting.
(30 Aug '22, 17:20)
guerda
Show us the code.
(30 Aug '22, 22:03)
DaveF
|
Just remove the relation from the output set:
The parentheses are interpreted as the "union" operator: https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Union answered 30 Aug '22, 11:06 MarcoR Thanks! I thought it would be the solution. It seems that with other postcode it does not work at all. 40667 contains ~20 generators, but it does not return any with your code. That is odd. Any idea? https://overpass-turbo.eu/s/1lum
(30 Aug '22, 17:14)
guerda
|