Welcome guest, is this your first visit? Click the "Create Account" button now to join.
Page 2 of 13 FirstFirst 123412 ... LastLast
Results 11 to 20 of 133

Hybrid View

  1. #1
    Member
    Join Date
    Aug 2013
    Location
    A
    Posts
    24
    Rep Power
    70

    Default

    I think i got it!!!
    It seems to be that what is changed are the offsets of each internal section of each sub-file.
    Which are changed simply because the header is displaced from the rest of the sub-file.
    working...

    PS: Now i need to learn how to interpret and change the offsets, which is probably very basic, but i don't have a clue

  2.    Advertissements


  3. #2
    syzygy
    Guest

    Default

    Quote Originally Posted by testlelelala View Post
    I think i got it!!!
    It seems to be that what is changed are the offsets of each internal section of each sub-file.
    Which are changed simply because the header is displaced from the rest of the sub-file.
    working...

    PS: Now i need to learn how to interpret and change the offsets, which is probably very basic, but i don't have a clue
    As you have found out, the difference between two, say TRE, headers are the contained offset values pointing to data sections in the TRE data area. In a NT or pseudo-NT GMP subfile the offset is always relative to the start of GMP header. But in a non-NT TRE/RGN/LBL subfile, the offset is relative to the start of TRE/RGN/LBL header respectively. So, for example, after you join a TRE header with its TRE data area (both from a pseudo-NT file), you need to update those offsets in TRE header to be relative to the start of the TRE header.

    The location of an offset within a non-NT subfile header can be found in the document below.
    [Only registered and activated users can see links. ]

  4. #3
    Member
    Join Date
    Aug 2013
    Location
    A
    Posts
    24
    Rep Power
    70

    Default

    It worked!!!
    For the moment instead of changing offsets values in the header, i retain absolute offset position of the data just adding a bunch of zeros between the header and the "body" (real data).
    Gpsmapedit opened it without any problem!!!
    I'm not kidding.
    On the contrary cGPSmapper 0085 don't like it, failed, probably because it uses a different algorithm (to retrieve the data) and get confused about the zeros.

    So what i did, with a pseudo-NT file, i retrieve the gmp subfile and start extracting each subfile within it (TRE, RGN, LBL, NET, NOD).
    I can get them by knowing where RGN, NET, NOD starts using the 0x15 offset value in their respective header.
    Then i make some assumptions and extract each header and body subfile.
    Then i create individually the complete subfile stacking the header, then a bunch of zeros (to maintain the absolute position of the body data that was in the gmp), and then the body data.
    Then with gmaptool join them together and get the img.

    Things to do is
    +forget about adding zeros and change the offset values in the header, i think it is possible just need analysis.
    +analize where TRE and LBL points to the offset, as they are different to the others. To get a precise way to find all body starts position without doubts.

    EDIT: Joining the subfiles using GmapTool with the "short header" option enabled do the trick and NOW cgpsmapper 0085 get it right!!!!!!!!
    Last edited by testlelelala; 6th August 2013 at 08:36 AM.

  5. #4
    Kanopus
    Guest

    Default

    I don't think cgpsmapper correctly decompile house numbers. For example this is source:
    Code:
    Please Login or Register to see the links
    And this decompiled img:
    Code:
    Please Login or Register to see the links

  6. #5
    Member
    Join Date
    Aug 2013
    Location
    A
    Posts
    24
    Rep Power
    70

    Default

    Perhaps it has a bug when left or right are undefined (none).
    I'll check.
    But the roads numbers i checked, all are okay, but they have both sides defined left and right numbering.
    example: Numbers1=1,E,100,200,O,101,199
    Last edited by testlelelala; 6th August 2013 at 09:34 AM.

  7. #6
    Kanopus
    Guest

    Default

    Try: Numbers1=2,E,100,200,O,101,199

    I really hope that old cgpsmapper is not good enough to kick out of business 3-rd party map publishers like CarteBlanche.

  8. #7
    Member
    Join Date
    Aug 2013
    Location
    A
    Posts
    24
    Rep Power
    70

    Default

    I also hope that no one get kicked out of business.
    But i do hope that old cgpsmapper do things right (as it seems to be for the moment.)

  9. #8
    Kanopus
    Guest

    Default

    Internal structure of Garmin NT format is not known. This thread is not about revers engineering Garmin NT maps but about disassembling maps from independent publishers, who use cgpsmapper.

  10. #9
    Navigation software expert Convert garmin .img pseudo-NT to non-NT? I know it's possible, but how?(SOLVED!!!)
    Convert garmin .img pseudo-NT to non-NT? I know it's possible, but how?(SOLVED!!!)Convert garmin .img pseudo-NT to non-NT? I know it's possible, but how?(SOLVED!!!)Convert garmin .img pseudo-NT to non-NT? I know it's possible, but how?(SOLVED!!!)
    Giomen's Avatar
    Join Date
    Apr 2009
    Location
    Suomi-Russia
    Age
    58
    Posts
    2,153
    Rep Power
    729

    Default

    Quote Originally Posted by Kanopus View Post
    Internal structure of Garmin NT format is not known.
    What about it?

    Spoiler: CLICK
    Other than that, I have done some research on the deviation of China map
    coordinates. Though there is no concrete result, you can follow it in this
    article
    [Only registered and activated users can see links. ]
    My ultimate goal is to change the coordinates in place, i.e. change individual
    bytes without recompiling the map. The cmdc tool is to generate the deviation
    table. The gimgfixcmd tool fixes the deviation of a map.

    ...

    The reverse engineering of the unlocking algorithm and the GMP section (aka the NT format by Garmin) are my work.


    It is really work!
    Garmin, how much is 30 pieces of silver for Judas today? Were they worthy for crucifix of GPSPower?

  11. #10
    Navigation software Moderator kunix's Avatar
    Join Date
    Sep 2011
    Location
    Belarus
    Posts
    908
    Rep Power
    440

    Default

    I don't really believe that people who reverse engineered non-NT IMG files can't do the same with NT IMG files There should be some other reasons... Like all of them being involved in some economic relations which make decompiling NT maps by others not desirable
    Last edited by kunix; 6th August 2013 at 10:42 PM.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •