[OSM-talk] Converting Polish/.MP to OSM?
Karl Newman
siliconfiend at gmail.com
Tue May 6 05:53:11 BST 2008
On Mon, May 5, 2008 at 9:32 PM, Erik Johansson <erjohan at gmail.com> wrote:
> On Tue, May 6, 2008 at 6:20 AM, Simon Wood <simon at mungewell.org> wrote:
> > Hi all,
> > Is anyone working on any tools to facilitate the conversion of '.mp' to
> '.osm'?
>
> > Type=0x16
> > Label=Yamnuska West Ascent
> > RoadID=1176
> > RouteParam=1,0,0,0,1,1,1,1,1,0,0,1
>
> Do you know what these means?
>
>
> grep -e ^Type Calgary_Area_Trail\ Map_1_13\ 2.mp |sort|uniq -c |sort -gr
> |head
> 1617 Type=0x16
> 257 Type=0x5a00
> 179 Type=0x6
> 126 Type=0x4d00
> 125 Type=0xa
> 108 Type=0x18
> 69 Type=0x4
> 48 Type=0x6401
> 46 Type=0x6412
> 36 Type=0x4c
> .... removed..
>
Type is the Garmin GPS object type. See the manual at www.cgpsmapper.com
> grep -e ^RouteParam Calgary_Area_Trail\ Map_1_13\ 2.mp |sort|uniq -c
> |sort -gr
> 1594 RouteParam=1,0,0,0,1,1,1,1,1,0,0,1
> 172 RouteParam=3,0,0,0,0,0,0,0,0,0,0,0
> 67 RouteParam=4,0,0,0,0,0,0,0,0,0,0,0
> 62 RouteParam=4,2,0,0,0,0,0,0,0,0,0,0
> 53 RouteParam=2,0,0,0,0,0,0,0,0,0,0,0
> 10 RouteParam=5,3,0,0,0,0,0,0,0,0,0,0
> 6 RouteParam=0,0,0,0,1,1,1,1,1,0,0,1
> 5 RouteParam=3,0,1,0,0,0,0,0,0,0,0,0
> 2 RouteParam=5,2,0,0,0,0,0,0,0,0,0,0
> 1 RouteParam=3,1,0,0,0,0,0,0,0,0,0,0
> 1 RouteParam=3,0,0,0,0,0,1,1,1,0,0,1
> 1 RouteParam=0,0,0,0,0,0,1,1,1,0,0,1
> --
> /emj
>
RouteParam is an encoding of attributes of the routable lines. The fields
are: Speed (a number from 0-7 for 8 to 128 km/h), Road class (0-4 for
"importance" of the road), One way (0 or 1), Toll (0 or 1), and then a
series of vehicle restrictions (1 if restricted): emergency, delivery,
car/motorcycle, bus, taxi, pedestrian, bicycle, truck. This is actually
quite good, that probably means the files are topological and routable, but
parsing them is more complicated.
Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20080505/ed57f498/attachment.html>
More information about the talk
mailing list