You are not logged in.

#1 2007-05-13 17:24:24

k_b
Member
Registered: 2007-05-04
Posts: 21

Compiling the planet.osm into an .img file?

Hi.
I tried to use mkgmap-r145-155/mkgmap.jar with the latest planet.osm file planet-070509.osm.
I gave the java process almost 1.2GB of memory, but after a few minutes of working mkgmap.jar says:
Bad input file format

and ends. No other message given.

Does anyone know what happened?
Is there a debug mode?
Is the osm file too large?


Is there some other allpication that is capable of compiling the data from a very large file?


k_b

Offline

#2 2007-05-14 09:36:01

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

Re: Compiling the planet.osm into an .img file?

So you try to make a Garmin map from the entire planet file? That won't work afaik. The amount of data is just too huge. Better use a tool to extract a portion of the planet file and work with that.

Some tools to create maps are in the outputs category in the wiki.

Another option is to load the planet.osm file into a local database...


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#3 2007-05-14 19:06:17

k_b
Member
Registered: 2007-05-04
Posts: 21

Re: Compiling the planet.osm into an .img file?

Indeed i was trying to make a img file from the planet file.
It would be very helpful if mkgmap.jar was capable of splitting into smaller areas internally, and then making one output file.

I could well take portions of the planet file and create many img files. After that, how can i combine all img files into one gmapsupp.img that i load onto the unit?

Offline

#4 2007-05-14 19:20:38

k_b
Member
Registered: 2007-05-04
Posts: 21

Re: Compiling the planet.osm into an .img file?

A second question, if i take portions out of planet.osm and create img files, does it matter if the areas overlap somewhat if i create one big img file to load onto the GPS unit?
If it does matter, what is the best way to have the extracted areas not to leave any spece inbetween the areas, but at the same time, not overlap?

Offline

#5 2007-05-15 10:16:16

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

Re: Compiling the planet.osm into an .img file?

Ok, however I don't have any experience with this:

Afaik, you can stitch multiple maps together using PatchIMG. Best practice seems to not make the maps too large, otherwise they will be very loaded very slowly it seems.

Lots of info on map making is here: http://www.malsingmaps.com in fhe forums and wiki.

The problem of working with the planet.osm files is that most (if not all) XML parsers want to load the entire file into memory (which will seldom be possible). So most 'parsers' are just simple string search cut and past type of applications. These have the tendency to be difficult to function properly. I think this is the reason that there is no proper support for planet.osm files in most OSM utilities unfortunately.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#6 2007-05-20 08:15:15

k_b
Member
Registered: 2007-05-04
Posts: 21

Re: Compiling the planet.osm into an .img file?

Lambertus wrote:

So you try to make a Garmin map from the entire planet file? That won't work afaik. The amount of data is just too huge. Better use a tool to extract a portion of the planet file and work with that.

Some tools to create maps are in the outputs category in the wiki.

Another option is to load the planet.osm file into a local database...

According to the perl-script i need: Geo::OSM::Planet;   (line 23)
Where can i find it?
I did search cpan, but with no luck.


k_b

Offline

#7 2007-05-21 10:09:34

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

Re: Compiling the planet.osm into an .img file?

Have you tried Googling on 'Geo::OSM::Planet'? wink


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#8 2007-05-28 19:48:02

bruce89
Member
From: Glasgow, Scotland
Registered: 2006-06-18
Posts: 62

Re: Compiling the planet.osm into an .img file?

k_b wrote:

According to the perl-script i need: Geo::OSM::Planet;   (line 23)
Where can i find it?

http://trac.openstreetmap.org/browser/a … s/perl_lib
or
http://svn.openstreetmap.org/applicatio … /perl_lib/

Last edited by bruce89 (2007-05-28 19:48:30)


Garmin eTrex Vista Cx

Offline

Board footer

Powered by FluxBB