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

Overpass: Get OSM ways which are untouched since it’s creation

1

Hi,

I'm looking for an Overpass Turbo query to get all ways with "source"="PGS" which were NOT TOUCHED since it's creation.

I've heard that Overpass can do this and would be glad about any help.

asked 26 Jun '18, 19:50

Nehaj's gravatar image

Nehaj
31558
accept rate: 0%


One Answer:

3

Something like this:

way[source=PGS](if:version()==1);
out;

It takes a long time to complete and won't really work with Overpass Turbo, it returns too much data.

Here's a similar script finding version 1 nodes, which are more common and easier to find, just to demonstrate the version test:

node[source=PGS]({{bbox}})(if:version()==1);
out;

answered 27 Jun '18, 02:14

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

4

Please note that the version of a way is not increased when one of its points is moved. It only changes when the tags on the way are changed or when nodes are added/deleted

(27 Jun '18, 04:07) escada

Source code available on GitHub .