開放街圖標誌 OpenStreetMap 開放街圖

Visualizing relations on OSMCha

於 2020年一月19日 由 willeEnglish發表。 上一次更新在 2020年一月20日。

Some of the most important elements in the OpenStreetMap database are relations. It’s used to define administrative boundaries, restrictions on the road network (which has a relevant impact on routes), elements made by multiple geometries, etc. Relations are also some of the most difficult elements to monitor and track modifications, as some of them don’t affect the way the data is rendered on the map.

This week we added the possibility to visualize relations on OSMCha! To avoid increasing the number of elements rendered on the map, the visualization of relations works in a bit different way…

osmcha relations

By default, we show the bounding box of all relations that were created, modified or deleted by a changeset. When you click on a relation, it will hide all other ways and nodes and add to the map the elements that are (or were) members of that relation.

relation members

We have a new panel on the bottom right corner of the page that lists the members of the relation and the role of each of them. Clicking on a item of that list will highlight that member geometry on the map.

relation member highlighted

If you click on a second relation on the map, it will hide the first relation members and show the members of that second one. Clicking on a part of the map that doesn’t have any element, it will reset the visualization to the default view.

One important advice: if the relation bounding box is bigger than the changeset bounding box, only the relation members that intersect with the changeset BBox will be available for visualization. It is a technical limitation that will affect mainly the roads and administrative boundaries, but I believe that, even on those cases, it will be useful to analyse the changeset impact on the integrity of that relation part.

Let us know if you have some new idea to make the relations visualization yet better.

電子郵件圖示 藍天圖示 Facebook 圖示 LinkedIn 圖示 乳齒象圖示 Telegram 圖示 X 圖示

討論

Chetan_Gowda2020年01月20日 17時49分 發表的評論

This was long standing feature that community wanted. Thanks for your efforts :)

karitotp2020年01月21日 16時13分 發表的評論

Great job Wille!! 👏

Godfan2020年01月22日 06時19分 發表的評論

Thanks, Willie! this is really a very good Enhancement and it is the easiest method to verify the relations data.

Adityo2020年02月14日 02時59分 發表的評論

Thank you Wille!!!

登入 來留下評論