How can I find objects (nodes etc.) that miss certain attributes?

Dear Community,

is there any easy way, like an online renderer or a function in JOSM (which I use for editing), to search for objects that lack certain attributes? I have no experience with command line tools or the like, so an easy to use solution would be great and help me much with my mapping projects:

e.g.: I want to improve the availability or precision of the “surface” description in a certain area. Therefore I want to find all streets in that area that still miss the “surface” attribute or all streets that have only the general “paved”-attribute as an attribute without detailed specification; so I can visit those streets and amend the proper attributes.

Thank you much for your Ideas!

Best regards, Yan

Try to use search with

type:way highway=* -surface

You can also do this with two step searches if you find the detailed search syntax confusing:

  1. Find all your objects e.g., highway
  2. Remove from your current set of selected objects all objects with surface

Remove and Search within allow reasonably complicated processes which sometimes need a fair bit of fiddling with to get right with the text search syntax

I normally then use the ToDo plugin to step through each object found in the search & edit it appropriately, although this might not be needed if you are sure all ways have asphalt surfaces (almost guaranteed to be an exception though).

Before downloading an entire area or its objects, you can also query on Overpass Turbo online before exporting the objects or area you want to edit to JOSM. This can make work more focused.

Good point from @Kovoschiz. In this case the query fragment will be:

way[“highway”]!“surface”;

You can run this directly via the josm download (you need additional correct syntax for overpass)

Thank you all for your help! I’ll try these the next days.

Have a good start into the year 2021 all!

Best regards, Yan