OpenStreetMap 로고 OpenStreetMap

check for Stages of decay

un1matr1x님이 English로 2023년 12월 29일에 게시함.

Based on a coincidence, I used Overpass in my area to try to identify objects marked for removal that are older than period X. Unfortunately, I didn’t manage it so easily and at the same time had the idea whether it wouldn’t be better to check this on site via street complete. In the course of the GitHub issue, however, it turned out that it doesn’t really fit the core of Street Complete.

So back to Overpass and the good old query in advance to be able to check it later on site. With the help of other OSM users on Telegram, the following query was created, which can be easily customized:

https://overpass-turbo.eu/s/1Fml

To be on the safe side, the overpass query is shown here as code:

//Check for Stages of decay
//based on the idea of:
//https://github.com/streetcomplete/StreetComplete/issues/5402

[out:json][bbox:{{bbox}}][timeout:800];
//gather informations about non-excisiting objects
//and store the data as "gone"
(
  nw[~"^demolished:.*$"~"."];
  nw[~"^razed:.*$"~"."];
  nw[~"^removed:.*$"~"."];
  nw[~"^destroyed:.*$"~"."];
)->.gone;

//substract any gone-object, that was last modified
//within the last X years
(.gone; - nwr.gone(newer:"{{date:1year}}"););

out geom;
이메일 아이콘 Bluesky 아이콘 Facebook 아이콘 LinkedIn 아이콘 마스토돈 아이콘 텔레그램 아이콘 X 아이콘

토론

댓글을 남기려면 로그인하세요