can not create map for Garmin GPS device

Hello,

on the website

http://dev.openstreetmap.de/aio/

I found a howto.txt-file in which following command should create the file for my Garmin device. But unfortunately I get only the following message back:

c:\TEMP>java -ea -jar mkgmap.jar --gmapsupp --family-id=7001 --product-id=3 --fa
mily-name=basemap ./*.img basemap.TYP
Exception in thread “main” java.lang.NullPointerException
at uk.me.parabola.tdbfmt.OverviewMapBlock.setArea(OverviewMapBlock.java:
100)
at uk.me.parabola.mkgmap.combiners.TdbBuilder.addToTdb(TdbBuilder.java:1
14)
at uk.me.parabola.mkgmap.combiners.TdbBuilder.onMapEnd(TdbBuilder.java:1
03)
at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:335)
at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.ja
va:124)
at uk.me.parabola.mkgmap.main.Main.main(Main.java:101)

c:\TEMP>

What can I do?

Thank you beforhands

Björn

Have you tried allocating more heap-space to java? Use the -XmxAAAAm switch, where AAAA is a number in megabytes. For instance, I use -Xmx1500m, thusly:

java -Xmx1500m -ea -jar mkgmap.jar etc etc etc

Obviously AAAA can’t be bigger than the actual amount of memory you have on your computer.

sorry, same I get the same message back:

c:\TEMP>java -Xmx1500m -ea -jar mkgmap.jar --gmapsupp --family-id=7001 --product
-id=3 --family-name=basemap ./*.img basemap.TYP
Exception in thread “main” java.lang.NullPointerException
at uk.me.parabola.tdbfmt.OverviewMapBlock.setArea(OverviewMapBlock.java:
100)
at uk.me.parabola.mkgmap.combiners.TdbBuilder.addToTdb(TdbBuilder.java:1
14)
at uk.me.parabola.mkgmap.combiners.TdbBuilder.onMapEnd(TdbBuilder.java:1
03)
at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:335)
at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.ja
va:124)
at uk.me.parabola.mkgmap.main.Main.main(Main.java:101)

c:\TEMP>

Is the family ID of your TYP file set to 7001?

maybe change ./*.img into something like c:\temp*.img ??

Hi ligfietser, no that helps not :frowning:

Hi csdf, I don’t know? How can I find out? But by the way: if in the HowTo-file it says that I should use 7001 shouldn’t it be correct?
Greetings Björn

Open the TYP file in the online editor at http://ati.land.cz/gps/typdecomp/editor.cgi
The family ID will be stated at the top (and you can change it if you like).

The family ID can be any number. I use numbers starting at 1400, but I remember reading that it can be up to 9999. The only restriction is that the family ID of the TYP file must match the family ID of the map the TYP file is being used with.

I’m not sure that this is your problem, however.

That command line looks awfully complicated. Might be better if he tried something simpler, without the family and product IDs and the TYP file.