Confusing results when uploading.

Hi When using this command line: java -Xmx512M -ea -jar mkgmap.jar --transparent --style-file="c:\dwgs\Programs\GPS All\Garmin Profile" --family-id=42 M000002.TYP 63272002.gz it creates a 63272002.img using my customized styles & when uploaded appears as I would expect. But when I use the same file to be included in the gmapsupp file in this command the 63272002.img displays as if it was created using the built in style of mkgmap: java -Xmx512M -ea -jar mkgmap.jar --remove-short-arcs --gmapsupp "Contours.img" "63272002.img" --generate-sea:polygons --transparent --style-file="c:\dwgs\Programs\GPS All\Garmin Profile" --family-id=42 M000002.TYP MyTown.osm move "C:\dwgs\Programs\GPS All\mkgmap\gmapsupp.img" "L:\Garmin" Any ideas as to why this is? Cheers Dave F.

Dave F. wrote:
Hi
When using this command line:
java -Xmx512M -ea -jar mkgmap.jar --transparent --style-file="c:\dwgs\Programs\GPS All\Garmin Profile" --family-id=42 M000002.TYP 63272002.gz
it creates a 63272002.img using my customized styles & when uploaded appears as I would expect.
But when I use the same file to be included in the gmapsupp file in this command the 63272002.img displays as if it was created using the built in style of mkgmap:
java -Xmx512M -ea -jar mkgmap.jar --remove-short-arcs --gmapsupp "Contours.img" "63272002.img" --generate-sea:polygons --transparent --style-file="c:\dwgs\Programs\GPS All\Garmin Profile" --family-id=42 M000002.TYP MyTown.osm move "C:\dwgs\Programs\GPS All\mkgmap\gmapsupp.img" "L:\Garmin"
Any ideas as to why this is?
Cheers Dave F.
It's a bit tricky to understand what you're trying to do in the second compile. For instance, you're applying --remove-short-arcs to pre-built IMG files, which doesn't make much sense. You're also mixing pre-existing IMG files with OSM files, which I'd avoid if I were you. Better to create all the IMG files seperately, then compile them into your ultimate gmapsupp.img in one step at the end.

Hello Charlie Charlie Ferrero wrote:
Dave F. wrote:
It's a bit tricky to understand what you're trying to do in the second compile. For instance, you're applying --remove-short-arcs to pre-built IMG files, which doesn't make much sense. I'm a bit surprised to hear you say that. I'm aware that the options are processed in the order I list them, but surely mkgmap knows what they are to be applied to. ie the .OSM file & not the .IMGs that are part of the --gmapsupp option?
You're also mixing pre-existing IMG files with OSM files, which I'd avoid if I were you. Better to create all the IMG files seperately, then compile them into your ultimate gmapsupp.img in one step at the end.
I'm following instructions from the mkgmap wiki: *--gmapsupp* Write a gmapsupp.img file, possibly joining previous gmapsupp.img (you need to copy in the Mkgmap's working directory), that can be uploaded to a Garmin device in USB mode. java -jar mkgmap.jar --gmapsupp corsica.img cyprus.img mallorca.img malta.img tenerife.img Are you saying this is to be avoided? I appreciate your website. I've found it very useful. Cheers Dave F.

Dave F. (davefox@madasafish.com) wrote:
Hello Charlie
Charlie Ferrero wrote:
Dave F. wrote: It's a bit tricky to understand what you're trying to do in the second compile. For instance, you're applying --remove-short-arcs to pre-built IMG files, which doesn't make much sense. I'm a bit surprised to hear you say that. I'm aware that the options are processed in the order I list them, but surely mkgmap knows what they are to be applied to. ie the .OSM file & not the .IMGs that are part of the --gmapsupp option?
You're also mixing pre-existing IMG files with OSM files, which I'd avoid if I were you. Better to create all the IMG files seperately, then compile them into your ultimate gmapsupp.img in one step at the end.
I'm following instructions from the mkgmap wiki:
*--gmapsupp* Write a gmapsupp.img file, possibly joining previous gmapsupp.img (you need to copy in the Mkgmap's working directory), that can be uploaded to a Garmin device in USB mode.
java -jar mkgmap.jar --gmapsupp corsica.img cyprus.img mallorca.img malta.img tenerife.img
Are you saying this is to be avoided? The wiki only describes combining IMG files together, whereas you appear to be both combining IMG files whilst also processing OSM files, in the same step. Like I said before, I'd recommend you do all the OSM processing first. Then combine IMG files in a second, separate step. I'm not saying that you can't do it any other way, just that this way works!
-- Charlie
participants (3)
-
Charlie Ferrero
-
charlieï¼ cferrero.net
-
Dave F.