Polish format

From OpenStreetMap Wiki
(Redirected from .mp)
Jump to navigation Jump to search

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 (archived).[1]

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

  • A freeware Microsoft Windows program called Ptxt2shp will convert an .mp file into Shapefile. It also runs 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.
  • A free (GNU GPL) ruby script called mp2csv will extract points of interest from .mp file and list them in csv format. The csv file could then be converted in other formats with GDAL or with QGIS.

References

  1. The original cGPSmapper site is defunct as of late 2016, but the documentation can still be obtained from the Internet Archive Wayback Machine.

External links