Hallo,
üblicher weise holte ich mir meine Garmin-Karten von http://www.raumbezug.eu/ag/internet/osmGarmin.htm - aber das dürfte jetzt nicht mehr funktionieren und deren Mailbox ist auch voll. Daher versuchte ich, mir meine Garmin-IMG-Karte selbst zu bauen und stehe dabei vor einem Problem.
Das habe ich gemacht (ich wollte eine “Standard”-Karte Österreich machen) - die einzelnen Schritte:
-
Dateien von Geofabrik holen / austria.osm.bz2 / autria.osm.pbf
-
mit Splitter die Datei zerlegen:
java -jar \OSM\splitter-r200\splitter.jar austria.osm.pbf -
bounds file machen (mit osmconvert)
osmconvert austria.osm.pbf --out-o5m >austria.o5m -
osmfilter einsetzen
osmfilter austria.o5m --keep-nodes= --keep-ways-relations=“boundary=administrative =postal_code postal_code=” >austria-boundaries.osm -
bounds-File in ein Subdirectory geben, hier bounds, vorher gzip anwenden
gzip austria-boundaries.osm -
nun die eigentlichen boundary-Files machen
java -jar mkgmap-build-r2225.jar --createboundsfile=bounds/austria-boundaries.osm.gz
→ Schritte 1 bis 6 scheinen zu funktionieren, entsprechende Files werden erzeugt.
- Nun IMG machen
java -jar mkgmap-build-r2225.jar --route --remove-short-arcs --add-pois-to-areas --index --location-autofill=bounds --gmapsupp *.osm.pbf
→ Im Schritt 7 gibt es ein Problem:
C:\OSM\Geofabrik\OrgAustria-1-7-2012>java -jar mkgmap-build-r2225.jar --route --remove-short-arcs --add-pois-to-areas --index --location-autofill=bounds --gmapsupp *.osm.pbf
Error at line 1, col 1
Bad file format: 63240001.osm.pbf
Error parsing file
Error at line 1, col 1
Bad file format: 63240002.osm.pbf
… usw. usw.
… Am Ende kommt noch:
Error parsing file
Exception in thread “main” java.lang.NullPointerException
at uk.me.parabola.mkgmap.combiners.FileInfo.getFileInfo(FileInfo.java:139)
at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:406)
at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:126)
at uk.me.parabola.mkgmap.main.Main.main(Main.java:112)
C:\OSM\Geofabrik\OrgAustria-1-7-2012>
—> Was ist da los? Ich bin für jeden Hinweis dankbar!
Grüße,
jomu