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

How to search for key:subkey = value in jOSM?

2

I want to select all buildings which don't have an address set. To find those, I want to seach for -addr:street=*, but this yields an unexpected token: <equals>.

How can I seach for this?

asked 08 Oct '17, 18:58

Pieter%20Vander%20Vennet's gravatar image

Pieter Vande...
2415813
accept rate: 50%


One Answer:

6

By now, I've found the answer: put key:subkey in double quotes. The search query thus becomes

    -"addr:street"=*

answered 08 Oct '17, 18:59

Pieter%20Vander%20Vennet's gravatar image

Pieter Vande...
2415813
accept rate: 50%

Without the quotes it the colon is taken as the binary operator from the key:valuefragment syntax. (That syntax documented in the search dialog.)

(08 Oct '17, 20:18) dsh4

Source code available on GitHub .