Maplint/XML Format

From OpenStreetMap Wiki
Jump to: navigation, search
Available languages — Maplint/XML Format
Afrikaans Alemannisch aragonés asturianu azərbaycanca Bahasa Indonesia Bahasa Melayu Bân-lâm-gú Basa Jawa Baso Minangkabau bosanski brezhoneg català čeština dansk Deutsch eesti English español Esperanto estremeñu euskara français Frysk Gaeilge Gàidhlig galego Hausa hrvatski Igbo interlingua Interlingue isiXhosa isiZulu íslenska italiano Kiswahili Kreyòl ayisyen kréyòl gwadloupéyen kurdî latviešu Lëtzebuergesch lietuvių magyar Malagasy Malti Nederlands Nedersaksies norsk norsk nynorsk occitan Oromoo oʻzbekcha/ўзбекча Plattdüütsch polski português română shqip slovenčina slovenščina Soomaaliga suomi svenska Tiếng Việt Türkçe Vahcuengh vèneto Wolof Yorùbá Zazaki српски / srpski беларуская български қазақша македонски монгол русский тоҷикӣ українська Ελληνικά Հայերեն ქართული नेपाली मराठी हिन्दी অসমীয়া বাংলা ਪੰਜਾਬੀ ગુજરાતી ଓଡ଼ିଆ தமிழ் తెలుగు ಕನ್ನಡ മലയാളം සිංහල ไทย မြန်မာဘာသာ ລາວ ភាសាខ្មែរ ⵜⴰⵎⴰⵣⵉⵖⵜ አማርኛ 한국어 日本語 中文(简体)‎ 吴语 粵語 中文(繁體)‎ ייִדיש עברית اردو العربية پښتو سنڌي فارسی ދިވެހިބަސް

When Maplint is run it adds several elements to the OSM XML file. All those elements are in the namespace http://maplint.openstreetmap.org/xml/1.0 and use the prefix maplint.

At the beginning of the OSM file right after the opening <osm> a <maplint:test/> element will be added for each test which was run on this file. This will look something like this:

 <maplint:test agent="xsltests" group="base" id="empty-tag-key" version="1" severity="error"/>
agent This is the program which added ran the test
id This is the id of the test
group Every test is in a group which is named here. This might be useful if you only want to run part of the tests
version A version number for this test
severity Severity of this test. Can be "error", "warning", or "notice"

Then later in the file, for each <node/>, <segment/>, or <way/> which fails a certain test, a <maplint:result/> element will be added. This will look something like this:

 <maplint:result ref="nodes-on-same-spot">Nodes: 25182824 25182841 25185062 25185067</maplint:result>

In this case this means that the nodes-on-same-spot test was run which detects if there are multiple nodes on the exact same spot. The ref attribute references back to the <maplint:test id="nodes-on-same-spot"/> element earlier. The text content of the result element is either empty or contains some additional information useful for printing in error reports. In this case the list of IDs of all node sharing the same location.