Garmin IMG Format

alpha
15 Recommendations
118 Downloads (This Week)
Last Update:
Download imgdecode-1.1.tar.gz
Browse All Files
BSD Linux

Description

A description of the Garmin IMG file format. Includes some experimental/sample code for parsing IMG files.

Garmin IMG Format Web Site

Categories

Other/Nonlisted Topic

License

BSD License

Update Notifications





User Ratings

 
 
15
2
Write a Review

User Reviews

  • Posted by OpenID User — 2013-01-06

    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.

  • Posted by OpenID User 2012-06-11

    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!

  • Posted by danopia 2010-07-12

    Awesome docs! Thanks for the PDF.

  • Posted by dayvson menezes 2013-04-17

    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

Read more reviews

Additional Project Details

Intended Audience

Developers

Programming Language

C++

Registered

2004-11-29

Icons must be PNG, GIF, or JPEG and less than 1 MiB in size. They will be displayed as 48x48 images.