Template args + --net parameter results in default image name

I've just been updating my IMG creation process to use all the new mkgmap options (was running a pretty old version), and noticed a little bit of weirdness. I'm using a template file to create some standard format maps, and if the --net parameter is specified in the template file, the first IMG file created gets the default 62340001.IMG file name, regardless of the other parameters such as map name. Using version r984. Eg: Template File: family-id: 3081 product-id: 2601 overview-mapname: 30810100 net gmapsupp tdbfile # Following is a list of map tiles. mapname: 30810101 description: OSM-AU Victoria input-file: VIC.osm.gz country-name: Australia country-abbr: AUS region-name: Victoria region-abbr: VIC mapname: 30810102 description: OSM-AU New South Wales input-file: NSW.osm.gz country-name: Australia country-abbr: AUS region-name: New South Wales region-abbr: NSW ... (Five more file templates here) Command line: java -Xmx1024M -jar mkgmap.jar -c template.args This builds a file set like: 62340001.IMG 30810102.IMG ... (next five files correctly named) 30810100.IMG 30810100.tdb If the net parameter is removed from the template file OR the --route parameter is supplied, then all the files are correctly named. I can live without the net parameter, but just thought I'd the issue up the flagpole... Matt

On Sun, Mar 22, 2009 at 02:08:14PM +1100, Matt White wrote:
I'm using a template file to create some standard format maps, and if the --net parameter is specified in the template file, the first IMG file created gets the default 62340001.IMG file name, regardless of the other parameters such as map name. Using version r984.
Thanks I took a look at this and there is a serious bug in reading command files with -c. All options without a value are ignored and cause the following option to be skipped too... I think someone previously stated that 'route' did not work in a command file, which would fit in with this too. I have a fix, which will be commited soon. Thanks for reporting this, ..Steve

btw, if you skip mapname the img files will have the same name as the osm files. that's how I used it On 22 Mar 2009, at 8:03 , Steve Ratcliffe wrote:
On Sun, Mar 22, 2009 at 02:08:14PM +1100, Matt White wrote:
I'm using a template file to create some standard format maps, and if the --net parameter is specified in the template file, the first IMG file created gets the default 62340001.IMG file name, regardless of the other parameters such as map name. Using version r984.
Thanks I took a look at this and there is a serious bug in reading command files with -c. All options without a value are ignored and cause the following option to be skipped too...
I think someone previously stated that 'route' did not work in a command file, which would fit in with this too.
I have a fix, which will be commited soon.
Thanks for reporting this,
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Thanks for sorting that out so quickly. Will test it tonight... -----Original Message----- From: mkgmap-dev-bounces@lists.mkgmap.org.uk [mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk] On Behalf Of Steve Ratcliffe Sent: Monday, 23 March 2009 2:03 AM To: mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] Template args + --net parameter results in default image name On Sun, Mar 22, 2009 at 02:08:14PM +1100, Matt White wrote:
I'm using a template file to create some standard format maps, and if the --net parameter is specified in the template file, the first IMG file created gets the default 62340001.IMG file name, regardless of the other parameters such as map name. Using version r984.
Thanks I took a look at this and there is a serious bug in reading command files with -c. All options without a value are ignored and cause the following option to be skipped too... I think someone previously stated that 'route' did not work in a command file, which would fit in with this too. I have a fix, which will be commited soon. Thanks for reporting this, ..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
Apollinaris Schoell
-
Matt White
-
Steve Ratcliffe