GML

From OpenStreetMap Wiki
Jump to: navigation, search
Available languages — GML
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 português do Brasil 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 беларуская български қазақша македонски монгол русский тоҷикӣ українська Ελληνικά Հայերեն ქართული नेपाली मराठी हिन्दी অসমীয়া বাংলা ਪੰਜਾਬੀ ગુજરાતી ଓଡ଼ିଆ தமிழ் తెలుగు ಕನ್ನಡ മലയാളം සිංහල ไทย မြန်မာဘာသာ ລາວ ភាសាខ្មែរ ⵜⴰⵎⴰⵣⵉⵖⵜ አማርኛ 한국어 日本語 中文(简体)‎ 吴语 粵語 中文(繁體)‎ ייִדיש עברית اردو العربية پښتو سنڌي فارسی ދިވެހިބަސް

GML (Geographic Markup Language) is an industry-standard XML format for expressing vector geometries and their attributes. GML is readable by a variety of different F/OSS GIS packages, most notably any that depend on the OGR library, including QGIS and GRASS GIS.

Converting OSM XML

  • OGR tools (such as ogr2ogr) support GML and (more recently) OSM XML as an in-built thing. Allowing you to covert between these formats. Many tools bundle OGR functionality too, so tools such Osmium and QGIS naturally support this conversion too.

Older methods

Quite early on the project's history we were able to convert OSM XML into GML using two different approaches developed by User:Crschmidt and User:SchuylerErle. Both methods however were not updated to work with OSM XML format updates (old API version 0.5) and so the above method are recommended.