開放街圖標誌 OpenStreetMap 開放街圖

check for Stages of decay

於 2023年十二月29日 由 un1matr1xEnglish發表。

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;
電子郵件圖示 藍天圖示 Facebook 圖示 LinkedIn 圖示 乳齒象圖示 Telegram 圖示 X 圖示

討論

登入 來留下評論