<html><head></head><body style="font-family: Monospace;"><div>Hi</div><div><br></div><div>Are you sure? I think this disagrees with my set-up, which works.</div><div><br></div><div>In a subdirectory for a particular country, I have script with like:</div><div><br></div><div>java -jar ../splitter/splitter.jar --geonames-file=../cities15000.zip --mapid=74320001 netherlands-latest.osm.pbf</div><div>                                                                                     </div><div>java -jar ../mkgmap/mkgmap.jar -c ../mkgmap.opts --country-name=Netherlands --country-abbr=NLD --family-id=7432 -c template.args ../mytyp.txt</div><div><br></div><div>In the parent directory, my mkgmap.opts file has likes:</div><div><br></div><div>bounds=../bounds.zip</div><div>precomp-sea=../sea.zip</div><div>style-file=../styles/mystyle</div><div>#road-name-config=../roadNameConfig.txt</div><div><br></div><div>where these files are all in the same parent directory.</div><div><br></div><div>Ticker</div><div><br></div><div><br></div><div>On Thu, 2019-03-07 at 10:22 +0000, Gerd Petermann wrote:</div><blockquote type="cite"><div>Hi all,</div><div><br></div><div>attached is a patch for the documentation. It adds the text</div><div>        Note that relative paths given in the file are assumed to be relative to the</div><div>        location of the file.</div><div>here:</div><div>-c filename</div><div>--read-config=filename</div><div>        Each line of the named file contains a command option in the form</div><div>        option=value or option:value.  The options are included as arguments of</div><div>        the executed command as if they had been specified on the command line.</div><div>        Note that relative paths given in the file are assumed to be relative to the</div><div>        location of the file.</div><div>        Lines beginning with a # character are ignored and can be used as</div><div>        comments.  Any command line option can be specified, however the</div><div>        leading '--' must be omitted.  The short option names with a single</div><div>        '-' cannot be used, simply use the long name instead.</div><div><br></div><div>I hope this is not too confusing?</div><div>I nobody suggest an inprovement I'll commit it on sunday.</div><div><br></div><div>Gerd</div><div><br></div><div>________________________________________</div><div>Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Ranko Jaksic <<a href="mailto:ranko.jaksic@zgi.hr">ranko.jaksic@zgi.hr</a>></div><div>Gesendet: Mittwoch, 6. März 2019 22:22</div><div>An: mkgmap-dev</div><div>Betreff: [mkgmap-dev] mkgmap -c problem (relative paths)</div><div><br></div><div>Hello,</div><div><br></div><div>I use config files with mkgmap and define input-files using relative paths.</div><div>Example from my config file "osm-options":</div><div><br></div><div>mapname: 80100003</div><div>input-file: data/80100003.osm.pbf</div><div><br></div><div>This works well when the config file is in the same directory where mkgmap is started.</div><div>When invoked with "-c osm-options" mkgmap finds my input file just fine.</div><div><br></div><div>To tidy up my environment I moved all my config files into a config subdirectory.</div><div>Now when I invoke mkgmap with "-c config/osm-options" I get the following error:</div><div><br></div><div>SEVERE (Main): .\config\data\80100003.osm.pbf: file .\config\data\80100003.osm.pbf doesn't exist</div><div><br></div><div>It appears that mkgmap interprets my relative paths relative to the config file location,</div><div>and not (as I expected) the mkgmap cwd!</div><div><br></div><div>This seems to be a bug since the description for -c states:</div><div>"The options are included as arguments of the executed command as if they had been specified on the command line."</div><div><br></div><div>I tested using the latest r4282 on Windows.</div><div><br></div><div>Regards,</div><div>Ranko</div><div><br></div><div><br></div><div>_______________________________________________</div><div>mkgmap-dev mailing list</div><div><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a></div><div><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div><div>_______________________________________________</div><div>mkgmap-dev mailing list</div><div><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a></div><div><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div></blockquote></body></html>