NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I want to match bridges which are considered metallic or unknown.

I tried this:

area[name="Australia"]->.a;
way(area.a)
[man_made=bridge]
[bridge!=viaduct]
["bridge:structure"!=humpback]
[material~metal]
[material~steel]
[material~reinforced_concrete]
["bridge:material"~steel]
["bridge:material"~metal];
out geom;

But it this ignores bridges that don't have the material or "bridge:material" key. Looking at the overpass docs doesn't mention anyway to match on a key only if that key exists.

asked 05 Feb '17, 09:46

CMCDragonkai's gravatar image

CMCDragonkai
21112
accept rate: 0%

I think you should use the union operator ( ) and search for bridges without bridge:material on one hand with [!"bridge:material"] and the ones you are looking for above.

(05 Feb '17, 11:22) escada

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×483
×65

question asked: 05 Feb '17, 09:46

question was seen: 1,168 times

last updated: 05 Feb '17, 11:22

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum