I would like to extract, with Overpass Turbo, all members of a specific route relation that do not have a specific key (in my case, all ways that lack a surface tag). asked 29 Sep '15, 16:08 voschix edited 29 Sep '15, 20:19 aseerel4c26 ♦ |
One Answer:
We had the exact same question in the German forum thread "OverpassTurbo for Dummies" . Here's how query should look like. Please adjust the relation id selection as needed.
Try it in Overpass Turbo: http://overpass-turbo.eu/s/bJg answered 29 Sep '15, 17:28 mmd edited 29 Sep '15, 17:31 |
that's great - I often thought about the same! … And how to get a refinement of this? e.g. only tracks when searching for existence of tracktype? ;-) I tried
relation(398874);way(r)["highway"="track"][tracktype!~"."];out;>;out skel;
but that runs much much longer (until I cancel).That's also possible with QL, but the query needs to be rewritten a bit due to a very expensive evaluation sequence:
relation(398874);way(r);way._["highway"="track"][tracktype!~"."];out;>;out skel;
great, thanks! I think this kind of refinement is often useful for those queries. I need to learn this language! :-)