Relation Check
From OpenStreetMap Wiki
Other languages — Help us translating this wiki
• Afrikaans • አማርኛ • العربية • অসমীয়া • Asturianu • Azərbaycanca • Български • বাংলা • Brezhoneg • Bosanski • Català • Corsu • Česky • Dansk • ދިވެހިބަސް • Ελληνικά • Esperanto • Español • Eesti • Euskara • فارسی • Suomi • Français • Frysk • Gaeilge • Kréyòl gwadloupéyen • Gàidhlig • Galego • Alemannisch • ગુજરાતી • هَوُسَ • עברית • हिन्दी • Hrvatski • Kreyòl ayisyen • Magyar • Հայերեն • Interlingua • Bahasa Indonesia • Igbo • Íslenska • Italiano • 日本語 • Basa Jawa • ქართული • Қазақша • ភាសាខ្មែរ • ಕನ್ನಡ • 한국어 • Kurdî • Lëtzebuergesch • ລາວ • Lietuvių • Latviešu • Malagasy • Македонски • മലയാളം • मराठी • Bahasa Melayu • Malti • မြန်မာဘာသာ • नेपाली • Nederlands • Norsk (nynorsk) • Norsk (bokmål) • Occitan • Oromoo • ଓଡ଼ିଆ • ਪੰਜਾਬੀ • Polski • پښتو • Português • Português do Brasil • Română • Română (Moldova) • Русский • سنڌي • සිංහල • Slovenčina • Slovenščina • Soomaaliga • Shqip • Српски / Srpski • Svenska • தமிழ் • తెలుగు • Тоҷикӣ • ไทย • Türkçe • Українська • اردو • O'zbek • Tiếng Việt • Wolof • isiXhosa • Yorùbá • 中文(简体) • 中文(繁體) • isiZulu
Contents |
Introduction

Relation check looks for errors in the relations of an .osm file. It checks the following relations:
- Types checked
- restriction
- multipolygon (with "no-role ways")
- route (with forward/backward/other distinction)
- boundary (with enclaves/exclaves)
- Output contains
- Simple maps of relations with problems
- Link to relations in OSM (history)
- Links to "open ends" (JOSM)
- Link to the Relation Analyzer
- Tags
- Errors
- Modes
- Mode can be given so only certain types will be checked
- Mode picture can be switched on and off
- Other
- optionally accepts a simple *.poly file (like osmosis) to draw file border into maps. Simple means that only the first polygon in the file is considered for evaluation.
Hints
- Expect false positives at the relations that touch the border of the checked osm file! To limit the number of false positives a threshold of 1 km is implemented. If an open end of a relation is closer than 1 km to a border node then the relation will not be reported. Nevertheless be careful when the green border appears in the map...
- I have experienced differences regarding relation members in OSM files and OSM history...
- It is a good idea to just browse through the pictures in a folder on your disk.
Checks
- Germany
- Germany Multipolygons (ZIP)
- Germany Routes (ZIP)
- Germany Restrictions (ZIP)
- Germany Boundaries (ZIP)
- Other (upon request)
Code
checkrelation.pl
A germany.poly file can also be found there.
Todo
- draw only cities (no towns) when area reaches certain limit
- link to OSM Route Manager
Nice to have
- gpx file per route
- route check support for roundabouts
- link to restriction analyzer?
- (multi polygons out of *.poly files)
- Relation Analyzer functionality (analyze and show all relations found in file even if they don't have an error?)
- For routes calculate distances