OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#101 2009-07-07 16:24:50

kanualien
Member
Registered: 2009-07-07
Posts: 2

Re: 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!

Last edited by kanualien (2009-07-07 16:26:33)

Offline

#102 2009-07-07 17:03:49

liosha
Member
From: Moscow
Registered: 2008-03-04
Posts: 8,447
Website

Re: osm2mp.pl: OSM -> Polish format converter

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

Offline

#103 2009-07-09 18:47:50

kanualien
Member
Registered: 2009-07-07
Posts: 2

Re: osm2mp.pl: OSM -> Polish format converter

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. ;-(

Offline

#104 2009-08-02 16:55:50

liosha
Member
From: Moscow
Registered: 2008-03-04
Posts: 8,447
Website

Re: 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:
clipboard01uej.th.png clipboard02wnh.th.png

Last edited by liosha (2009-08-02 16:56:39)

Offline

#105 2009-08-03 09:34:34

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 3,269
Website

Re: osm2mp.pl: OSM -> Polish format converter

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


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#106 2010-01-18 09:32:29

liosha
Member
From: Moscow
Registered: 2008-03-04
Posts: 8,447
Website

Re: osm2mp.pl: OSM -> Polish format converter

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

Offline

#107 2010-03-31 06:48:22

Nighthare
Member
Registered: 2010-03-31
Posts: 1

Re: osm2mp.pl: OSM -> Polish format converter

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?

Offline

#108 2010-03-31 06:54:32

liosha
Member
From: Moscow
Registered: 2008-03-04
Posts: 8,447
Website

Re: osm2mp.pl: OSM -> Polish format converter

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

Offline

#109 2010-09-08 09:57:39

Sockeye
Member
Registered: 2009-06-14
Posts: 19

Re: osm2mp.pl: OSM -> Polish format converter

Hi liosha,

I have three ways I need to distinguish


Way 1

<tag k="highway" v="tertiary" />
<tag k="surface" v="paved" />

=> 0x0003

Way 2

<tag k="highway" v="track" />
<tag k="surface" v="paved" />

=> 0x0004

Way 3

<tag k="highway" v="track" />
<tag k="surface" v="unpaved" />

=> 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

Offline

#110 2010-09-08 10:31:11

liosha
Member
From: Moscow
Registered: 2008-03-04
Posts: 8,447
Website

Re: osm2mp.pl: OSM -> Polish format converter

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/

Offline

#111 2010-09-08 20:00:59

Sockeye
Member
Registered: 2009-06-14
Posts: 19

Re: osm2mp.pl: OSM -> Polish format converter

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

Offline

#112 2010-09-09 09:06:19

liosha
Member
From: Moscow
Registered: 2008-03-04
Posts: 8,447
Website

Re: osm2mp.pl: OSM -> Polish format converter

Sockeye wrote:

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)

This is not ready yet

Sockeye wrote:

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

Look at 'Source' section

Offline

#113 2010-09-13 08:52:08

Sockeye
Member
Registered: 2009-06-14
Posts: 19

Re: osm2mp.pl: OSM -> Polish format converter

liosha wrote:
Sockeye wrote:

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)

This is not ready yet

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

Offline

#114 2010-10-01 15:01:30

juson
Member
Registered: 2010-04-27
Posts: 454

Re: osm2mp.pl: OSM -> Polish format converter

Sockeye wrote:
liosha wrote:
Sockeye wrote:

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)

This is not ready yet

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= … ectormap-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

Offline

#115 2010-10-02 09:31:53

liosha
Member
From: Moscow
Registered: 2008-03-04
Posts: 8,447
Website

Re: osm2mp.pl: OSM -> Polish format converter

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

Last edited by liosha (2010-10-02 09:33:35)

Offline

#116 2010-10-02 14:50:31

juson
Member
Registered: 2010-04-27
Posts: 454

Re: osm2mp.pl: OSM -> Polish format converter

Hello Liosha,

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

Thanks in advance

Offline

#117 2010-10-12 11:31:24

liosha
Member
From: Moscow
Registered: 2008-03-04
Posts: 8,447
Website

Re: osm2mp.pl: OSM -> Polish format converter

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

Offline

#118 2011-02-09 06:37:46

Emeraldboy
Member
Registered: 2011-02-09
Posts: 3

Re: osm2mp.pl: OSM -> Polish format converter

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.

Offline

#119 2011-02-09 07:39:32

liosha
Member
From: Moscow
Registered: 2008-03-04
Posts: 8,447
Website

Re: osm2mp.pl: OSM -> Polish format converter

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.

Offline

#120 2011-02-09 22:22:42

Emeraldboy
Member
Registered: 2011-02-09
Posts: 3

Re: osm2mp.pl: OSM -> Polish format converter

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.

Offline

#121 2011-08-24 06:11:38

cloud
Member
Registered: 2011-08-24
Posts: 5

Re: osm2mp.pl: OSM -> Polish format converter

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?

Last edited by cloud (2011-08-24 06:15:55)

Offline

#122 2011-08-27 01:03:44

Seldom
Member
Registered: 2009-01-25
Posts: 193

Re: osm2mp.pl: OSM -> Polish format converter

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.

Last edited by Seldom (2011-08-27 01:05:18)

Offline

#123 2011-08-28 18:43:06

cloud
Member
Registered: 2011-08-24
Posts: 5

Re: osm2mp.pl: OSM -> Polish format converter

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?

Offline

#124 2011-08-28 19:03:26

Seldom
Member
Registered: 2009-01-25
Posts: 193

Re: osm2mp.pl: OSM -> Polish format converter

I'm running Win7.  When I installed ActivePerl I also got an app called Perl Package Manager. 
I install OSM2MP.pl in the same folder as the OSM file I want to convert.
As you run OSM2MP you will get a series of error messages identifying missing library components.  Browse for them with Perl Package Manager and install them. It may take a few tries, but eventually you will find all the packages you need.
It might be easier to open OSM2MP.pl in a text editor use the Package Manager to find the "required packages" listed at the start of the file.

Offline

#125 2011-09-01 05:02:11

cloud
Member
Registered: 2011-08-24
Posts: 5

Re: osm2mp.pl: OSM -> Polish format converter

Oh, it was great, finally I succeeded the conversion !!
Seldom, your comments of PPM(Active manager), finding required packages from the start of the file, and installig OSM2MP.pl in the same folder as the OSM file for conversion were critical to me.

I appreciate your help.

I summarize the tips for the converion work by using osm2mp for a beginner like me.
1) Download osm2mp package (http://garminmapsearch.com/osm/osm2mp_v080.zip)
2) Downaload Active Perl (http://www.perl.org/get.html )  and PPM(Perl Package Manager: http://search.cpan.org/~murray/PPM-2.1.9/bin/ppm.pl)
3) Install Active Perl first,  then PPM
4) Open osm2mp.pl in a text editor and locate the list of the required packages at the top of the file.
5) Run PPM by entering the command 'ppm' in the Command Window of Windows. Be sure that the computer is in connection with the Internet.
6) At the 'View all packages' winfow of PPM, locate the required but uninstalled packages and put them to the action file list by clicking the package name, pressing the right button and selcting "install …."
7) Select "File"-"Run Marked Actions"
8) Exit the PPM
9) Put the osm file to convert to the directory of osm2mp package.
10) In the Command Window of Windows, change the current directory to the directory of osm2mp package by the command, CD
11) Run the following command
  osm2mp.pl map.osm > m1.mp

The options of osm2mp.pl can be listed by the command,
  osm2mp.pl >list.txt

Offline

Board footer

Powered by FluxBB