Garmin IMG Format
alphaDescription
A description of the Garmin IMG file format. Includes some experimental/sample code for parsing IMG files.
Categories
License
Update Notifications
User Ratings
User Reviews
-
Follow up to my 2012-06-11 post: I believe I found 3 small but critical bugs in parsing the LBL file (e.g. LblFile.getLabel): 1) after retrieving the 6 bits for a label character, those bits must be *reversed*, i.e. the first bit retrieved becomes the highest order bit of the six when decoding; 2) In the line: "offset += getDword(0x15) + 1;" the +1 should be removed; 3) It appears that if the label offset (e.g. for some polyline) is zero, it means there is no label, not that there is a label at offset zero. With the aforementioned fixes the software is very useful, thanks.
-
Very useful. I found a case in which the code doesn't work on a large file, and I also found the fix: In TreFile.getMapLevels(), the line int polygonOffset = getTriplet(localOffset); encounters a problem when the offset overruns the 3 byte representation (i.e. exceeds 0xFFFFFF). I added this fix/hack: int polygonOffset = getTriplet(localOffset); // there's a problem in which the value overflows the three-byte offset while (polygonOffset<lastPolygonOffset && lastPolygonOffset>0xf00000) { polygonOffset += 0x1000000; } lastPolygonOffset = polygonOffset; With this fix the code works great!
-
Awesome docs! Thanks for the PDF.
-
I would like to know more about the img and the decompilation copilação if they can get in ConTactProgram dayvson.red @ gmail.com =) I'm on my dificutades software craçao img