<div dir="ltr"><div>I have wondered where that "x-file" came from for years. To me, it's totally unnecessary and confusing. I thought my typ file editor, TypViewer, was creating it. <br></div><div>Even after reading the email and replies, I still don't understand the reasoning behind having mkgmap creating this "backup" copy in the first place but I think it should be got rid of.</div><div><br></div><div>Thanks for clearing up the mystery!</div><div><br></div><div>Dave<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 19, 2021 at 4:30 AM Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com">gpetermann_muenchen@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Ticker,<br>
<br>
please explain why mkgmap is "stuck" with the fixed version. What's the difference between a fixed *.typ file and one that is freshly compiled from *.txt?<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Ticker Berkin <<a href="mailto:rwb-mkgmap@jagit.co.uk" target="_blank">rwb-mkgmap@jagit.co.uk</a>><br>
Gesendet: Sonntag, 19. September 2021 13:25<br>
An: Development list for mkgmap; Steve Ratcliffe<br>
Betreff: Re: [mkgmap-dev] The x prepended to the *.typ file<br>
<br>
Hi<br>
<br>
If you don't use --output_dir but have map sources (.osm.pbf) and<br>
results (.img) all in the same place, and you specify a pre-built<br>
TYPfile with extension .typ, but it has the wrong family/product,<br>
mkgmap can adjust these, but is then stuck as to what to do with the<br>
fixed version, hence the "x" prefix to deal with this case.<br>
<br>
If --output-dir is specified and the .typ file wasn't in that when<br>
specified as an input parameter, then could avoid the rename.<br>
<br>
This doesn't effect me as I always use mkgmap to generate the .typ from<br>
the .txt as part of the final map generation process.<br>
<br>
Ticker<br>
<br>
On Sun, 2021-09-19 at 10:22 +0000, Gerd Petermann wrote:<br>
> Hi all,<br>
><br>
> I think there is an old rather confusing glitch in mkgmap class<br>
> TypSaver which it is used with a *.typ file as input, as in<br>
> java -jar mkgmap.jar --output-dir=<map-folder> --family-id=4711 ...<br>
> -c splitter-dir\template.args ..\typfiles\existing.typ<br>
> to make sure that family-id and product-id are correctly updated in<br>
> the *.typ file.<br>
> Since 2012 the program creates / overwrites a copy of file<br>
> existing.typ in the source(!) directory ..\typfiles with the prefix<br>
> "x", so ..\typfiles\xexisting.typ is written instead of<br>
> <map-folder>\existing.typ. I can't find it now but I think there were<br>
> complains that this name doesn't fit the 8+3 rule for old file<br>
> systems and causes trouble on some devices.<br>
><br>
> I think when Steve coded this he expected that the *.typ file is in<br>
> the output directory, not somewhere else. My conclusions:<br>
> - I think it is an error to create the copy in the source directory.<br>
> - I see no reason to create a copy with the prepended "x", I would<br>
> just create or alter the file in the given output directory.<br>
><br>
> @Steve: What case am I missing? What's the reason for the different<br>
> name in the copy?<br>
> @all: Does anybody rely on this behaviour?<br>
><br>
> Gerd<br>
> _______________________________________________<br>
> mkgmap-dev mailing list<br>
> <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
> <a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Dave Swarthout<br>Homer, Alaska<br>Chiang Mai, Thailand<br>Travel Blog at <a href="http://dswarthout.blogspot.com" target="_blank">http://dswarthout.blogspot.com</a></div></div>