Polish format

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

RouteParams

Some routing information goes in the RouteParams-field of a polyline. It is of the form

RouteParams=speed,class,oneway,toll,emergency,delivery,car,bus,taxi,foot,bike,truck

  • speed and class are 3 bit values (0 to 7), the others are 1 bit (0 or 1)
  • oneway is set if the road is a oneway street, toll if it's a toll road
  • car, bus, taxi, foot, bike, truck are set if the corresponding vehicle is not allowed to use the road
  • emergency and delivery are unclear

Format Conversion

To .mp

See osm2mp for a converter to polish format. Besides cGPSmapper, mkgmap also reads .mp-files.

From .mp

There is a freeware MS Windows program called Ptxt2shp which will convert .mp files into Shapefiles (it runs fine on Linux using Wine). Once you have a Shapefile you can use OGR tools from the GDAL project to convert to a multitude of other vector formats.