mapname splitter V mkgmap

Hello, Always testing, to find out what I'm doing wrong. If I run mkgmap that way : OPT_GMAPSUPP=" \ -Xmx896M \ -jar $FILEDIR/mkgmap.jar \ --country-name=$COUNTRY_NAME \ --country-abbr=$COUNTRY_ABBR \ --family-id=148 \ --gmapsupp \ --ignore-maxspeeds \ --ignore-turn-restrictions \ --latin1 \ --location-autofill=1 \ --lower-case \ --preserve-element-order \ --product-id=$INDEX_CARTE \ --remove-short-arcs \ --road-name-pois \ --route \ --style-file=$FILEDIR/styles/arvernes \ --tdbfile \ --transparent \ -c $CARTESDIR/template.args \ " java $OPT_GMAPSUPP --description="$DESCRIPTION" --family-name="$FAMILYNAME" --series-name="$SERIESNAME" Or that way : OPT_GMAPSUPP=" \ -Xmx896M \ -jar $FILEDIR/mkgmap.jar \ --country-name=$COUNTRY_NAME \ --country-abbr=$COUNTRY_ABBR \ --family-id=148 \ --ignore-maxspeeds \ --ignore-turn-restrictions \ --latin1 \ --location-autofill=1 \ --lower-case \ --mapname=09050305 \ --preserve-element-order \ --product-id=$INDEX_CARTE \ --remove-short-arcs \ --road-name-pois \ --route \ --style-file=$FILEDIR/styles/arvernes \ --tdbfile \ --transparent \ -c $CARTESDIR/template.args \ " java $OPT_GMAPSUPP --description="$DESCRIPTION" --family-name="$FAMILYNAME" --series-name="$SERIESNAME" The map created is always named : 63240500 For the first run, i understand, but for the second, I thought the map would have been named 09050305.img Between the two runs, I removed the option --gmapsupp and replaced it with --mapname=09050305 The template.args file : mapname: 63240500 description: OSM Map input-file: 63240500.osm.gz So I suppose that once the mapname in the template.args file is given, I can't change it with a parameter on the mkgmap command line, as long as I use the "-c template.args" parameter ?? Francois --

frmas <frmas@free.fr> writes:
So I suppose that once the mapname in the template.args file is given, I can't change it with a parameter on the mkgmap command line, as long as I use the "-c template.args" parameter ??
the mapname in the -c takes precedence if it is given later than --mapname. Why don't you ask the splitter to use different mapnumbers for your different locations? I think that's doable, and if not would be good to add.

Greg Troxel a écrit :
So I suppose that once the mapname in the template.args file is given, I can't change it with a parameter on the mkgmap command line, as long as I use the "-c template.args" parameter ??
the mapname in the -c takes precedence if it is given later than --mapname.
You meant on the same command line ? If so, it doesn't make any difference at least here with the other parameters I use. But I saw two differences when I put it as the last parameter or one of the first parameters. If I put it at the end of the command line, the resulting file is 183808 bytes for Andorra, and no error are given about zero length arc. -rw-r--r-- 1 fm users 183808 2009-08-17 20:58 Andorre.img If I put the -c parameter at the beginning, the resulting file is 96768 bytes -rw-r--r-- 1 fm users 96768 2009-08-17 21:01 Andorre.img and I have lots of errors like this one : GRAVE (RoadNetwork): Road Avinguda Meritxell; FIXME (OSM id 6182097) contains zero length arc GRAVE (RoadNetwork): http://www.openstreetmap.org/?lat=42.50842&lon=1.53407&zoom=17 GRAVE (RoadNetwork): Road Avinguda Meritxell; FIXME (OSM id 6182097) contains zero length arc Francois --

frmas <frmas@free.fr> writes:
Greg Troxel a écrit :
So I suppose that once the mapname in the template.args file is given, I can't change it with a parameter on the mkgmap command line, as long as I use the "-c template.args" parameter ??
the mapname in the -c takes precedence if it is given later than --mapname.
You meant on the same command line ? If so, it doesn't make any difference at least here with the other parameters I use.
But I saw two differences when I put it as the last parameter or one of the first parameters. If I put it at the end of the command line, the resulting file is 183808 bytes for Andorra, and no error are given about zero length arc. -rw-r--r-- 1 fm users 183808 2009-08-17 20:58 Andorre.img
If I put the -c parameter at the beginning, the resulting file is 96768 bytes -rw-r--r-- 1 fm users 96768 2009-08-17 21:01 Andorre.img
and I have lots of errors like this one : GRAVE (RoadNetwork): Road Avinguda Meritxell; FIXME (OSM id 6182097) contains zero length arc GRAVE (RoadNetwork): http://www.openstreetmap.org/?lat=42.50842&lon=1.53407&zoom=17 GRAVE (RoadNetwork): Road Avinguda Meritxell; FIXME (OSM id 6182097) contains zero length arc
I don't really understand, but I think the command line is parsed incrementally and the options in force when the filename is given are the ones that are used. I had the same experience as you and have been putting -c template.args as the last argument to mkgmap.

Greg Troxel a écrit :
and I have lots of errors like this one : GRAVE (RoadNetwork): Road Avinguda Meritxell; FIXME (OSM id 6182097) contains zero length arc GRAVE (RoadNetwork): http://www.openstreetmap.org/?lat=42.50842&lon=1.53407&zoom=17 GRAVE (RoadNetwork): Road Avinguda Meritxell; FIXME (OSM id 6182097) contains zero length arc
I don't really understand, but I think the command line is parsed incrementally and the options in force when the filename is given are the ones that are used. I had the same experience as you and have been putting -c template.args as the last argument to mkgmap.
Hmm, yes. I do it too. Still experimenting : according to the inside help, --overview-mapname=name If --tdbfile is enabled, this gives the name of the overview .img and .tdb files. The default map name is OSM_map Testing it, to find out a solution to my mixed maps menu, I thought that if I don't add the parameter --overview-mapname, the overview files (.img and .tdb) should be named : OSM_map.img and OSM_map.tdb. But at least, here on my system, they are always named : 63240000.tdb and 63240000.img. If I use the parameter --overview-mapname=xxxxxx, the overview files are well named. Is there something wrong in my understanding of that parameter ? (In case it matters, I made those tests using in both cases the parameter --overview-mapnumber=63240500). Francois
participants (2)
-
frmas
-
Greg Troxel