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

ways with no tags and not part of a relation

2

I want to find all streets in Brazil with no tags and not part of a relation, can someone help me?

asked 15 Jan '17, 13:44

erickdeoliveiraleal's gravatar image

erickdeolive...
66337
accept rate: 0%

edited 15 Jan '17, 13:45


One Answer:

2

Your question is rather at odds with the OSM data model, a way object with no tags is not a street, nor anything else.

If you actually want to find all streets that don't have tags outside of the highway tag and no relation membership, that can be likely done. If you want to find all way objects that have no tags and no relation membership, that can be done too, but is a different question.

Assuming you want to do it with the Overpass API, you should be able to get a result with a combination of the approaches used in

https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_API_by_Example#Search_for_untagged_ways

and

https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_API_by_Example#Bus_relations.2C_which_are_not_part_of_a_master_relation

answered 15 Jan '17, 14:50

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 15 Jan '17, 14:59

but there are ways without tags and not part of relation on OSM, I found many here.

(15 Jan '17, 15:02) erickdeolive...
1

this code can find some: http://overpass-turbo.eu/s/6X3 but I think this doesnt take care of ways not in relations

(15 Jan '17, 15:05) erickdeolive...
1
(15 Jan '17, 15:06) erickdeolive...
2

I didn't say that such ways don't exist, just that they are not streets.

(15 Jan '17, 16:52) SimonPoole ♦
2

found it http://gis.stackexchange.com/questions/129691/search-for-untagged-ways-in-overpass-turbo

but looks like it consumes too much memory from server

(13 Feb '17, 20:14) erickdeolive...

Source code available on GitHub .