<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
thomas,<br>
<br>
thanks for the explanation.<br>
<br>
Source files (map itself and typ files) handed over to
gmapi-builder.py have just been created one step before by mkgmap.<br>
<br>
I've just made the same process with another Perimeter, Switzerland,
and the same thing happens.<br>
<br>
But as stated originally: I'm not sure how bad this error is as:<br>
<ul>
<li>the image directory with these tbd file is useable in BaseCamp<br>
</li>
<li>the created gmap directory is usable in BaseCamp</li>
<li>the created gmapsupp.img out of the same source files is
usable too</li>
</ul>
Either a misinterpretation of gmapi-builder.py or something which is
handled wrongly in mkgmap, but as it appears without doing too much
damage.<br>
But that's just a rough guess from what I see from the outside.....
I'm the wrong person to track that down to the root cause.<br>
<br>
But I'm always willing and able to test and provide results.<br>
<br>
Cheers<br>
Patrik<br>
<br>
<div class="moz-cite-prefix">On 04.12.2016 11:13, Thomas Morgenstern
wrote:<br>
</div>
<blockquote
cite="mid:b5fea844-c4ce-b044-91f3-e0d57aca4034@img2ms.de"
type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<p>In tdb file exists such block 0x54. And it must have 20 byte.
in your example i see only 18 byte ? Block 0x54 contains CRC
sum of the tdb file ( without the 0x54 block) the crc is stored
in byte 0x54+5, 0x54+12, 0x54+15, 0x54+20.<br>
</p>
<p>0x54+5=Int(nCRCSum / 16777216) 'vByteD<br>
</p>
<p>0x54+12=Int((nCRCSum - vByteD * 16777216) / 65536) ' vByteC<br>
</p>
<p>0x54+15=Int((nCRCSum - vByteD * 16777216 - vByteC * 65536) /
256) 'vByteB<br>
</p>
<p>0x54+20=Int(nCRCSum - vByteD * 16777216 - vByteC * 65536 -
vByteB * 256)<br>
</p>
all other bytes=0
<p>thomas<br>
</p>
<br>
<div class="moz-cite-prefix">Am 04.12.2016 um 10:40 schrieb Patrik
Brunner:<br>
</div>
<blockquote
cite="mid:70d197a2-936a-b694-8e6d-534ff90542dc@gmx.net"
type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
Steve,<br>
<br>
I've downloaded both versions of gmapi-builder.py, the one from
bitbucket and the one from the mkgmap code base. They're bit
different and I couldn't find a version number when checking
quickly, but only the mkgmap version supports -i for mdx files.
Therefore I continued with the mkgmap codebase version only.<br>
<br>
The tool runs through and creates a loadable gmap directory for
BaseCamp (tested only on Windows).<br>
<br>
But it also give out an 'error' or 'warning' about an unknown
block, possibly to be checked further when implementing in
mkgmap:<br>
<blockquote><tt>Unknown Block: 54, length: 20,
'\x00\x00\xf7\x00\x00\x00\x00\x00\x00j\x00\x00\x99\x00\x00\x00\x00`\x00\x00'</tt><br>
</blockquote>
Attached the complete command output ran with -v.... please
ignore the copyright/license output... the strange content is
testing stuff from another construction area, as you know...
license information and unicode ;-)<br>
<br>
Testing inside this construction area will be next on my list
for today...<br>
<br>
Thanks and regards<br>
Patrik<br>
<br>
<div class="moz-cite-prefix">On 03.12.2016 23:26, Steve
Ratcliffe wrote:<br>
</div>
<blockquote
cite="mid:c8249799-521b-eeaf-7c95-00bec6efcb5c@parabola.me.uk"
type="cite">Hi <br>
<br>
<blockquote type="cite">I'm wondering if it would be possible
that mkgmap is able to <br>
create/convert maps also in the gmap (gmapi) format used for
BaseCamp on <br>
Windows and Macintosh. <br>
</blockquote>
<br>
Yes, this seems a reasonable thing to do. <br>
<br>
In the mkgmap code base there is a python program called <br>
gmapi-builder.py in the scripts directory. <br>
<br>
See also <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="https://bitbucket.org/berteun/gmapibuilder/overview">https://bitbucket.org/berteun/gmapibuilder/overview</a>
<br>
and <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://wiki.openstreetmap.org/wiki/Gmapibuilder">http://wiki.openstreetmap.org/wiki/Gmapibuilder</a>.
<br>
<br>
This is a converter, but should work on all platforms with
python <br>
installed, or could be made to do so... <br>
The first step is to verify that it works; then it should <br>
be easy enough to implement within mkgmap itself. <br>
<br>
..Steve <br>
_______________________________________________ <br>
mkgmap-dev mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a>
<br>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mkgmap-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mkgmap-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a class="moz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
</blockquote>
<br>
</body>
</html>