{"id":566,"date":"2022-09-20T10:17:35","date_gmt":"2022-09-20T10:17:35","guid":{"rendered":"http:\/\/blog.geofabrik.de\/?p=566"},"modified":"2022-09-20T10:17:35","modified_gmt":"2022-09-20T10:17:35","slug":"new-in-osm-inspector-highway-relations-and-out-of-use-roads","status":"publish","type":"post","link":"https:\/\/blog.geofabrik.de\/index.php\/2022\/09\/20\/new-in-osm-inspector-highway-relations-and-out-of-use-roads\/","title":{"rendered":"New in OSM Inspector: Highway relations and out-of-use roads"},"content":{"rendered":"<p>A few days ago we have added a couple of new road-related layers to our OSM Inspector.<\/p>\n<h2>Relations with <code>highway=*<\/code><\/h2>\n<p><a href=\"https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/planal-osmi-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-572 size-full\" title=\"Screenshot of OSM Inspector showing a mountainbike route with highway=cycleway\" src=\"https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/planal-osmi-1.png\" alt=\"Screenshot of OSM Inspector showing a mountainbike route with highway=cycleway\" width=\"980\" height=\"750\" srcset=\"https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/planal-osmi-1.png 980w, https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/planal-osmi-1-300x230.png 300w, https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/planal-osmi-1-768x588.png 768w\" sizes=\"(max-width: 980px) 100vw, 980px\" \/><\/a><\/p>\n<p>In the past, <code>highway=*<\/code> was sometimes added to route relations (<code>type=route<\/code> + <code>route=road<\/code>). This is not in line with current tagging standards any more, and can even lead to duplicated line geometries when importing OSM data into PostgreSQL with Osm2pgsql.<\/p>\n<p>The layer shows these old-style relations in dark red.<\/p>\n<p>Not all relations with <code>highway=*<\/code> are a problem &#8211; for example, pedestrian areas and rest areas mapped as multipolygons relations (<code>type=multipolygon<\/code>) are totally fine and hence not shown as errors. This exception applies to multipolygons with a <code>highway=*<\/code> value of <code>pedestrian<\/code>, <code>footway<\/code>, <code>service<\/code>, <code>rest_area<\/code> or <code>services<\/code>.<\/p>\n<p>Multipolygon relations with other <code>highway=*<\/code> values are likely candidates for changing to <code>area:highway=*<\/code>. See the <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Key:area:highway\">OSM Wiki page about<code>area:highway=*<\/code><\/a> for details about mapping roads as areas.<\/p>\n<h2>Out-of-use Roads<\/h2>\n<p>Even though OSM records &#8220;facts on the ground&#8221; and not historic or future data, it is generally accepted to map roads and paths which are not in use any more (or are not completed yet).<\/p>\n<p>In recent years, the so-called <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Lifecycle_prefix\">Lifecycle Tagging Schema<\/a> was adopted by many mappers and is used to tag feature which are not actively used any more, are (partially) removed or expected to be created in the future. The schema works by adding the lifecycle state as a colon-separated prefix to main key of the feature. If a road tagged as <code>highway=secondary<\/code> becomes disused, the tag is changed to <code>disused:highway=secondary<\/code>. Other tags of the feature remain unchanged.<\/p>\n<p>(An older, but equally valid, way of describing lifecycle states is to put <code>highway=construction<\/code> together with <code>construction=secondary<\/code>. The new OSMI layers treat both methods in the same way.)<\/p>\n<p>The following lifecycle sates are in use:<\/p>\n<ul>\n<li><code>razed<\/code> or <code>dismantled<\/code> or <code>removed<\/code> (note that the use of these prefixes is often subject to discussion and may be discouraged in your region)<\/li>\n<li><code>abandoned<\/code><\/li>\n<li><code>disused<\/code><\/li>\n<li>in use (normal state)<\/li>\n<li><code>construction<\/code><\/li>\n<li><code>proposed<\/code> (note that mapping proposed features may contravene the on-the-ground mapping rule and may be discouraged in your region)<\/li>\n<\/ul>\n<p>OSM Inspector now has four new layers displaying all linear <code>highway=*<\/code> features which are abandoned, disused, under construction, or proposed.<\/p>\n<p><a href=\"https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/saechische-schweiz-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-571 size-full\" title=\"Screenshot of OSM Inspector showing abandoned and disused paths in Saxon Switzerland National Park\" src=\"https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/saechische-schweiz-1.png\" alt=\"Screenshot of OSM Inspector showing abandoned and disused paths in Saxon Switzerland National Park\" width=\"980\" height=\"662\" srcset=\"https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/saechische-schweiz-1.png 980w, https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/saechische-schweiz-1-300x203.png 300w, https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/saechische-schweiz-1-768x519.png 768w\" sizes=\"(max-width: 980px) 100vw, 980px\" \/><\/a><\/p>\n<p>Two new layers render frequent mapping mistakes:<\/p>\n<ul>\n<li>Red: If a way has tags of contradicting lifecycle states, it is rendered on the <em>Multiple lifecycle states<\/em> layer in red. There can be valid reasons for such tagging, for example when a minor road is reconstructed to be a larger road (or a track in the forest is not maintained any more and becomes a narrow path). But in most cases this is an error.<\/li>\n<li>Orange: If the old method of lifecycle tagging is used in an incomplete way, e.g. <code>highway=construction<\/code> without a <code>construction=*<\/code> tag), this is considered an error. Sometimes the correct tag value can be discovered from the object history; otherwise a survey is required.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/worms-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-570 size-full\" src=\"https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/worms-1.png\" alt=\"Screenshot of OSM Inspector showing a trunk road under construction with an additional proposed=* tag\" title=\"Screenshot of OSM Inspector showing a trunk road under construction with an additional proposed=* tag\" width=\"980\" height=\"703\" srcset=\"https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/worms-1.png 980w, https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/worms-1-300x215.png 300w, https:\/\/blog.geofabrik.de\/wp-content\/uploads\/2022\/09\/worms-1-768x551.png 768w\" sizes=\"(max-width: 980px) 100vw, 980px\" \/><\/a><\/p>\n<h2>Use quality assurance tools responsibly<\/h2>\n<p>Please use quality assurance tools responsibly. They are often wrong. And even when they point you to poor mapping, simply repairing the mistakes is not a good choice. Poor mapping is often a sign of lack of knowledge (e.g. newbies), bad intentions, or mechanical edits, organised editing or imports gone wrong. It is worth having a look at an object&#8217;s history and other edits by the mappers involved to avoid simply &#8220;cleaning&#8221; the map and therefore possibly hiding a systemic issue. When contacting others about mistakes they have made, always remember that we all make mistakes and we can only become better by supporting each other.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few days ago we have added a couple of new road-related layers to our OSM Inspector. Relations with highway=* In the past, highway=* was sometimes added to route relations (type=route + route=road). This is not in line with current tagging standards any more, and can even lead to duplicated line geometries when importing OSM [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/posts\/566"}],"collection":[{"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/comments?post=566"}],"version-history":[{"count":0,"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/posts\/566\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/media?parent=566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/categories?post=566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/tags?post=566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}