osm2mp.pl: OSM -> Polish format converter

Hi all!

I’ve released new version of osm2mp: http://gpsmapsearch.com/osm/osm2mp_v075.zip

Main additions:

  • sea polygons from coastlines
  • custom-shape background (basic)
  • POIs of polygon objects
  • some minor updates (addressing, character conversion)

Screenshots:

Those sea areas look awesome when you’re used to those sealess maps we had up till now. Nice work!

I’ve released new version of osm2mp: http://gpsmapsearch.com/osm/osm2mp_v080.zip

Main additions:

  • advanced multipolygons support
  • routing: barriers support, vehicle-dependent turn restrictions, removing “parasite” U-turns
  • new objects: destination signs (garmin), building entrances (navitel), basic marine data (garmin)
  • better address search and in-city roads processing
  • lot of minor improvements

Hi there!
I’ve a problem trying to convert 3GB osm file. I’ve Mac with 8GB, I tweaked ulimit, but it still doesn’t work for me, i get an error - out of memory. Any ideas?

Nighthare, use any tile splitter to make smaller osm-files.

Hi liosha,

I have three ways I need to distinguish

Way 1

=> 0x0003

Way 2

=> 0x0004

Way 3

=> 0x0005


If I set in the following parameters in the “poly.cfg”

surface paved r 0x0004,2

all ways with “surface” “paved” are converted in 0x0004 also Way 1

is there any possibility to assign different mp types dependant on the combination of two tags?

Thanks and best regards
Sockeye

Sockeye, it is possible in new version of osm2mp, which is not released yet.
Configuration file format has been completely changed.

You can get current development version from svn: http://code.google.com/p/osm2mp/

Hi Liosha,

good to hear you are continuing to develop this great program as i use it on a regular basis to create the Magellan OSM maps. Is there the chance to include the possibilty to get the information on routes which only contain relations to ways?

e.g. I would like to create a bicycle map, containing all bicycle routes, with the ways all of one type and (re)named to the name of the route. (Also mtb, hiking etc)

Btw. how can I access the code of the current development? I do not find any download possibilities on the link you provided.

Thanks and best regards,
Sockeye

This is not ready yet

Look at ‘Source’ section

Never mind. I wrote a .NET soultion for this, creating these relations as addintional data for overlay maps.

As for the next update of osm2mp, when do you plan your next release?

BR
Sockeye

Hello Sockeye,

do you plan to offer your .NET solution to the community?

hello Liosha,
I´m looking for somthing like this (a bycicle map for the CompeGPS Aventura) . I tried a little with osm2mp.pl (0.90.a) but it´s a little strange if, I try this:

(http://gafner.net/dokuwiki/doku.php?id=aventura:kartenerstellung:anleitungen:osm-vectormap-2)
osm2mp.pl --nocodepage --cfgpoi nopoi.cfg --cfgpoly routepoly.cfg YOUR_MAP.osm > YOUR_MAP_routes.mp

the result is:
Unknown option: cfgpoi
Unknown option: cfgpoly

juson, osm2mp versions 0.9* has new yaml-based features style format, and doesn’t support old .cfg files.
You should convert .cfg files to new format, or use 0.8* instead.

Sockeye, i hope i’ll release it soon, but until then you can get latest revision from svn, it’s quite stable already

Hello Liosha,

is there a description, how version 0.9* work with parameters?

Thanks in advance

juson, i haven’t written any
But you can see example configuration files, they are quite easy.
And feel free to ask, of course :slight_smile:

Hi,
I am trying to make a map for my Garmin Quest and am new to this.
Refering back to some earlier posts that did no get answers. I too am getting an empty .mp file.
Any help greatly appreciated.
Thanks.
Chris.

Emeraldboy,
you better use mkgmap to create garmin maps. It is simpler and better documented.
You should use osm2mp+cgpsmapper only when you need it’s features that mkgmap doesn’t support yet, such as address search.

Thanks Liosha I will try mkgmap. Why am I getting an empty file? Looks like lots of errors when I run the managemaps.bat. I put all the files in the mapmanager dir and entered my map name and pasted in the url. I installed Perl with the packages and .Net4 but not playing ball. I will keep trying for a bit as I do not like to be beaten! Thanks for your help and this useful forum.
Chris.

I want to convert a osm file into a mp file by using osm2pm but I can not figure out how to do it. I tried to find an explanation on running osm2pm for a beginner for a couple of hours but I was not successful. I have installed a perl and tried the following command for the converstion.
c:\perl d:\osm2mp.pl d:\map.osm >map.mp
In d:, there were files, osm2mp.pl and map.osm.

It did not, however, work out and only produced an error message, "Can’t locate Template.pm in @INC… "

What are the correct way to do the conversion or where can I get an explanation for it?

Suggest you try ActivePerl if you haven’t. I found it’s installer and library managers are easier for a beginner than Strawberry Perl. If you track the error messages carefully, you will get a list of math modules you need that don’t come with the basic Perl package.

Thank Seldom for your suggestions.

I track the error message and installed the missing file Template.pm and ran osm2mp again by using the same perl command. However, again I got again an error message saying that another file was missing.

I also changed the Perl from Strawberry to Active but the result was the same.

It gives me a feeling that this not the way I can be successful with. Maybe I need to study Perl? What I want to do, however, is simply converting an osm file into a mp file, I wonder whether I really need to do so. Also I wonder whether by getting some knowdledge on Perl I would be able to successfully do the conversion.

Would you give me a recommendation?