OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#76 2009-02-14 14:17:03

KaChing_Cacher
Member
Registered: 2008-12-29
Posts: 744

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

"Could not open file: 1252" ...
I also used --road-name-pois, but how can I remove these ugly green points on the displayed map now?
I use a Garmin Vista HCx.

Last edited by KaChing_Cacher (2009-02-14 14:23:51)

Offline

#77 2009-02-14 15:23:44

Unmapped
Member
Registered: 2009-02-07
Posts: 5

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

You might be interested in Do-It-Yourself Up-To-Date Routable & Topographic Maps : http://wiki.openstreetmap.org/wiki/Talk … aphic_Maps

Last edited by Unmapped (2009-02-14 15:25:28)

Offline

#78 2009-02-14 23:17:14

KaChing_Cacher
Member
Registered: 2008-12-29
Posts: 744

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

Yeah, that looks quite interesting,
but isn't there a different way to create a map with which
you can navigate directly to certain addresses with housenumbers,
and which supports these German letters?

Offline

#79 2009-02-15 12:23:58

Unmapped
Member
Registered: 2009-02-07
Posts: 5

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

I'm not sure, but I think house numbers are not part of the OSM data, so you cannot do this with anything derived from openstreetmap.org. There is an option to add all streets as POIs, which makes it possible to navigate street to street. You need to find the housenumber youself then.
Other option: Let yourself be routed by google maps or reiseplanung.de, if you prefer something originally German and transfer the route to your Garmin device, either submitting it directly in the device or defining a route using software from the Landesvermessungsamt and uploading it to the device.

Umlauts are processed with -codepage 850 resp. -utf8 options.

Offline

#80 2009-02-15 23:29:20

KaChing_Cacher
Member
Registered: 2008-12-29
Posts: 744

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

Yes, housnumbers are part of the OSM data!
But there's still the problem with the "ä/ö/ü/ß" (Umaluts)!
-utf8 shows no effect and with -codepage 850 it says "File 850 could not be found."
In which programs do I have to insert the -utf8/-codepage 850?
In osm2mp and in mkgmap? I did it!

Last edited by KaChing_Cacher (2009-02-16 00:29:13)

Offline

#81 2009-02-16 04:52:18

nyem
Member
Registered: 2007-08-02
Posts: 20

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

osm2mp.pl --codepage 850
mkgmap --utf8

Offline

#82 2009-02-16 20:37:28

KaChing_Cacher
Member
Registered: 2008-12-29
Posts: 744

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

Alright, thank you very very much!
Just one question left:
How can I remove these ugly green spots on every street
when using --road-name-pois?
I use a Garmin Vista HCx.

Offline

#83 2009-02-18 10:41:50

nyem
Member
Registered: 2007-08-02
Posts: 20

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

nyem wrote:

osm2mp.pl --codepage 850
mkgmap --utf8

Someone just pointed out that mkgmap accepts --code-page=1252 and this also solves my abbreviated text problem in MobileXT tongue

Offline

#84 2009-02-19 23:47:57

KaChing_Cacher
Member
Registered: 2008-12-29
Posts: 744

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

nyem wrote:

osm2mp.pl --codepage 850
mkgmap --utf8

Still doesn't work. Sorry, can't help it.
With this it's even worse than without any --utf8 or --codepage,
because I don't get "Teststraße" like it should be, I get "Test.?.straße"
without any --utf8 or --codepage I get "Teststra?e".
Argh, dammit.

Offline

#85 2009-02-20 00:19:18

nyem
Member
Registered: 2007-08-02
Posts: 20

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

KaChing_Cacher wrote:

Still doesn't work. Sorry, can't help it.
With this it's even worse than without any --utf8 or --codepage,
because I don't get "Teststraße" like it should be, I get "Test.?.straße"
without any --utf8 or --codepage I get "Teststra?e".
Argh, dammit.

My problem was solved with the following options in mkgmap, you should try them too

--code-page=1252 --utf8 --lower-case

There's also a new --translit switch in osm2mp.pl that you can try

Offline

#86 2009-02-20 22:41:36

KaChing_Cacher
Member
Registered: 2008-12-29
Posts: 744

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

If I use --lower-case I only get the capital letters,
if I use the other additional things you wrote, I get
"Teststra?e" again.

Last edited by KaChing_Cacher (2009-02-20 22:41:50)

Offline

#87 2009-02-23 21:59:53

KaChing_Cacher
Member
Registered: 2008-12-29
Posts: 744

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

I was now able to create the correct file.mp,
when I open it I finally see the German letters.
But how can I convert it now with mkgmap?
What command do I have to insert?
Tried:
--code-page=1252
--codepage=1252
--codepage1252
--code-page=850
--codepage=850
--codepage850
--utf8
--latin2

With all of these additional commands a "�Ÿ" becomes a "I??" now! sad

Also I noticed now, that the output file is bigger, when I put --utf8
behind the --route.

Last edited by KaChing_Cacher (2009-02-23 22:32:51)

Offline

#88 2009-02-23 22:57:59

KaChing_Cacher
Member
Registered: 2008-12-29
Posts: 744

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

Hum, I think the best would be, if someone being able to show German letters on his GPS device
would post the ceontent of the .bat files of osm2mp and mkgmap here.
I hope the problem will be solved then and I won't have to bother anyone here anymore.

Offline

#89 2009-03-07 09:55:43

sorein
Member
Registered: 2009-03-07
Posts: 1

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

Can anyone explain how to make this program work?
I made a bat file containing:
osm2mp.pl G:\GPS\osm2mp_v065\map.osm > file31.mp

The output (file31.mp) is empty (0 kB).
The source file path is correct (and 5MB).

Is there any place where one could actually see all the <options>?

Offline

#90 2009-04-28 16:08:03

Trumbun
Member
Registered: 2008-12-25
Posts: 7

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

Hi, I am having trouble using osm2mp_v065.  When I try to convert the the osm file to mp I am having the following error:

Code In Terminal:
perl osm2mp.pl default.osm > file.mp

Error:

Can't locate Template.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at osm2mp.pl line 88.
BEGIN failed--compilation aborted at osm2mp.pl line 88.


I am using Ubuntu 9.04. Any one has an idea what to do?

Offline

#91 2009-04-28 16:20:55

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

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

http://wiki.openstreetmap.org/wiki/Osm2mp

On Debian/Ubuntu, you need the following dependency:
sudo apt-get install libtemplate-perl libtext-unidecode-perl

Offline

#92 2009-04-29 11:16:39

Trumbun
Member
Registered: 2008-12-25
Posts: 7

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

10x very much. it worked.

Offline

#93 2009-05-19 09:36:17

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

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

Hi all!

I've updated osm2mp, current version is 0.7 cool
http://garminmapsearch.com/osm/osm2mp_v070.zip

* added address search capability
* updated turn restriction processing
* basic coastline processing
* many improvements and fixes

Address search works only for streets this time (not for house numbers).
Cities should have bound ways tagged "place=city/town" and "place_name=...", like these:
http://openstreetmap.org/browse/way/30350510
http://openstreetmap.org/browse/way/25706594

Some screenshots:
zqc1SXhCXl.png jwelEUpqag.png 4Usm5lDnIV.png 1BJ7iXGGUi.png TnuDL7kuAC.png sSKHB75JkH.png KSMERIcRfO.png

Last edited by liosha (2009-05-19 09:39:02)

Offline

#94 2009-05-25 07:36:04

gulo
Member
Registered: 2009-05-25
Posts: 1

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

Hello

I am having issue with always getting empty .mp file.

I run osm2mp.pl file.osm > file.mp

This is what I get:

Processing file file.osm

Loading nodes...          103746 loaded, 419 POIs dumped
Loading relations...      7 multipolygons, 0 turn restrictions
Loading cities...         20 loaded
Processing ways...        13462 roads and 0 coastlines loaded
                          145 lines and 33 polygons dumped
Merging roads...          386 merged
Detecting road nodes...   26070 found
Detecting duplicates...   72 segments, 11 roads
Splitting roads...        245 self-intersections, 3 long roads
Fixing close nodes...     41 pairs fixed
Writing roads...          13324 written
Writing restrictions...   0 written
All done!!

I creates file.mp but it has 0 size. What could be the issue?

thanks

Offline

#95 2009-06-14 12:05:28

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

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

Hi Liosha,

I have a little issue with roads and railroads, when they use the same nodes. Only the railways are generated.
Do you have an idea how to solve it?

2415664.jpg

Thanks and best regards,
Sockeye

Offline

#96 2009-06-15 14:04:45

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

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

Sockeye,
Do you have one way tagged highway=..., railway=... or two different ways?

Offline

#97 2009-06-15 21:58:31

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

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

liosha

I do not map myself. I just create the maps for Magellan users.

This issue uccurs when one Way is tagged with multiple values. The road on the image above is tagged in the following way:

  <way id="9584322" visible="true" timestamp="2009-03-16T21:59:04Z" version="6" changeset="819593" user="BiIbo" uid="3516">
    <nd ref="25681709"/>
    <nd ref="25682189"/>
    <nd ref="308532399"/>
    <nd ref="361218579"/>
    <nd ref="308532398"/>
    <nd ref="21262900"/>
    <nd ref="25664661"/>
    <tag k="name" v="Delnická"/>
    <tag k="highway" v="residential"/>
    <tag k="railway" v="tram"/>
  </way>

There are many roads with a centerline Tram, which are tagged this way.

Best regards,
Sockeye

Offline

#98 2009-06-16 12:22:48

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

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

this time only one object in .mp can be created for one way. in your case: road OR rails.
type is selected according to "type priority" in poly.cfg

highway         residential             r       0x06,2          0       1       2,0,0,0,0,0,0,0,0,0,0,0
                                                    ^^^
railway         tram                    l       0x14            0       1

Offline

#99 2009-06-16 17:03:35

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

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

many thanks liosha,

I now know how I can influence it. I prefer the roads...:)

BR
Sockeye

Offline

#100 2009-06-29 08:53:50

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

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

liosha,

do you see a chance to change the way of processing "ways".

I now use new hardeware (i7, 12GB RAM) to process larger OSM files. Processing of the ways of a 6GB file takes about 6hours. When I check the resources, only on core is at 100% the seven other cores are idle...

Possibly this could be changed, if your script could spawn child processes, which could be processd by each cpu..

Thanks and best regards,
Sockeye

Offline

Board footer

Powered by FluxBB