[mkgmap-dev] MapSource crash with DEM: Maybe tdb file needs changes?
From Gerd Petermann gpetermann_muenchen at hotmail.com on Mon Feb 5 15:09:10 GMT 2018
Hi all, thanks for the input. I still have no idea what this size value might be but I agree that it doesn't seem to have an influence on the crash. I also tried changing several other of the unknown fields and found no change. I also tried to change the tdb to version 411, no change reg. crash. I do now try to reproduce the problem with tiles that have the same coordinates as those in the Garmin map. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Steve Ratcliffe <steve at parabola.me.uk> Gesendet: Montag, 5. Februar 2018 12:48 An: mkgmap-dev at lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] MapSource crash with DEM: Maybe tdb file needs changes? Hi > It seems that mkgmap writes some constants that might be important, e.g. MapDetailBlock.java contains > //01 c3 00 ff > os.write4(0xff00c301); > os.write(0); > os.write(0); > os.write(0); I've just looked at this. No idea where any of those came from :) I think those 7 bytes should be: 1 byte: unknown to me 1 byte: Maybe index into block 'S' (0x53) 1 byte: index into block 'R' (0x52) or zero if no block 'R' 4 bytes: a size that is generally related to the size of the file. cgpsmapper and gmaptool set this size to 256 (and previously to 255) Block R has the following structure: 1 byte: index number, starting from 1 n bytes: zero terminated string There is probably only ever one of these. Eg "Europe guide v1" Gmaptool appears to create one of these with the name "All". Block S has the following structure: 1 byte: number, probably index into block R 1 byte: number index in this block, starting from 1 n bytes: zero terminated string name eg: 1,1 "Region 1 - Aus/Switz/N.Italy" 1,2 "Region 2 - France" 1,3 "Region 3 - Germany/Czech Republic" ... Unfortunately I think they have nothing to do with DEM as maps without DEM have these. There are lots of unknown entries in the TDB header, there could be something there. ..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] MapSource crash with DEM: Maybe tdb file needs changes?
- Next message: [mkgmap-dev] Garmin uses overlapping tiles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list