osm2mp.pl: OSM -> Polish format converter

Hi!

Maybe this is trivial for experienced users,
but I personal do not get osm2mp.pl (0.72a) working (Vista 64bit, ActivePerl 5.10.0.1005). Allthough I installed necessary packages by ppm (in ppm there is only ‘Math-Geometry-Planar-GPC’ available), conversion stops with following error message:
Can’t locate Math/Geometry/Planar.pm in @ing (@ing contains: C:/Perl64/site/lib C:/Perl64/lib .) at D:\ […] \osm2mp.pl line 16 …
With older versions of osm2mp.pl (i.e. 0.70a, XP 32bit) there are no problems: result looks fine and is very, very useful.

Any hint is garateful expected, Thanks in advance!

unfortunately PPM doesn’t install Math-Geometry-Planar, you need to install it manually.
http://search.cpan.org/~dvdpol/Math-Geometry-Planar-1.16/Planar.pm
see README file

many thanks liosha for your fast reply.

I tried to install manually some times, but really I don’t know excactly what to do. There are to many messages like: ‘Warning: prerequiste … not found’
Will use older version of osm2mp instead. ;-(

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.