Welcome guest, is this your first visit? Click the "Create Account" button now to join.
Page 1 of 14 12311 ... LastLast
Results 1 to 10 of 138
  1. #1
    Navigation software expert AlexWhiter's Avatar
    Join Date
    Jun 2011
    Location
    Russia
    Posts
    170
    Rep Power
    269

    raster Converting JNX to raster IMG

    Hi there,

    I've made a small set of tools allowing for conversion from JNX maps to raster IMG.
    At this point, the "converter" is just a wrapper around the Mapsource Product Creator map compiler, and GmapTool.
    So, the MPC map compiler (bld_gmap32.exe) is required for the conversion, as well as gmt.exe tool from the GmapTool installation.

    But for the current stage of raster IMG research this is quite enough, I believe

    Ok, [Only registered and activated users can see links. ] is the archive with the scripts and tools.
    After you unpack the archive, there will be Tools folder with two subfolders.
    Please copy the contents of MPC\Tools\bld_gmap32 folder into extracted Tools\bld_gmap32 folder, and also copy you MPC license file into the same folder with License.mpl name.
    Next, copy gmt.exe file from GmapTool\gmt.
    That's it for the initial setup.

    Now, you can start jnx2img.cmd script with two command line parameters - path to JNX file, and path to resulting IMG. Like this:
    Code:
    Please Login or Register to see the links
    There are also optional command line parameters:
    "MapID=<hex or decimal number>", where hex number must be either prefixed with '0x' or '$', or suffixed with 'h' - to manually set MapID, default is a random id.
    "DrawOrder=<decimal number" - to set map's drawing order (also known as map priority), default is 24.
    "MapSeries=<decimal number" - to set MapSeries field in the map header (TRE + 0x45), default is 36.

    Please note the quotes around these parameters are required, so the converter can be started like this:
    Code:
    Please Login or Register to see the links
    Known limitations and issues of the current version:
    1. All the JNX levels with the scales below 864 will be mapped into a lowest zoom level in IMG, it becomes visible from 200m and closer in the devices. If there is more than one level in your JNX with small scale value, the converter will only use one of them - one with lowest scale value (i.e. the most detailed one).

    2. JNX levels are displayed in more than one zoom. For example, a level with the scale value 4777 is visible from 1.2km down to 5m (if more detailed levels are not present in the device). In IMG, in contrast, the level is only shown in the specified zooms, so, to emulate a JNX way of displaying the tiles, they should be placed in all the necessary zooms explicitly.
    Current version of the converter does not provide this emulation.

    3. When MapSeries is set to its default value (i.e. 36), or not specified, the converted raster IMG map will hide all area features of other maps in the device (independently of their draworder parameters). POIs and lines can still be visible (this will depend on the draworder of the maps).


    I invite everyone interested in raster IMG format exploration to join the testing, and report not yet identified limitations of raster IMG maps
    Last edited by AlexWhiter; 20th November 2013 at 05:39. Reason: description updated

  2.    Advertissements


  3. #2
    Master
    Join Date
    Feb 2011
    Location
    Sofia
    Age
    31
    Posts
    919
    Rep Power
    213

    Default

    Can this be used for the birds eye JNX?

  4. #3
    Navigation software expert AlexWhiter's Avatar
    Join Date
    Jun 2011
    Location
    Russia
    Posts
    170
    Rep Power
    269

    Default

    Quote Originally Posted by ddabcd277 View Post
    Can this be used for the birds eye JNX?
    Any well-formed JNX file can be converted

  5. #4
    ☼ADMIN☼
    catymag's Avatar
    Join Date
    Nov 2007
    Location
    light side
    Posts
    23,555
    Rep Power
    5308

    Default

    ..and used even in not patchable firmware that is the most important thing
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    You have to navigate to get to the good.
    Nuvi1250/Nuvi 34xx/Nuvi 2200/Nuvi 66/Oregon 600/Galaxy S5 MM 6.0.1/TomTom GO/iGO Nextgen Avic,Basar,Isr.Gift/Navigon
    Please don't flood my pm box with questions you can post on forum!! You won't hear back from me.

  6. #5
    Navigation software expert AlexWhiter's Avatar
    Join Date
    Jun 2011
    Location
    Russia
    Posts
    170
    Rep Power
    269

    Default

    Quote Originally Posted by catymag View Post
    ..and used even in not patchable firmware that is the most important thing
    Of course! That's amost the whole point!
    Last edited by AlexWhiter; 14th November 2013 at 15:54. Reason: spelling

  7. #6
    Navigation software expert AlexWhiter's Avatar
    Join Date
    Jun 2011
    Location
    Russia
    Posts
    170
    Rep Power
    269

    Default

    The script is updated. Please redownload from the same location.
    Changes:
    1. Any MPL-license from Tools\bld_gmap32 folder will be used, not necessarily with License.mlp name.
    2. Sometimes, the generated MapIDs were not supported by the devices. Fixed.
    3. MapID can now be set from the command line like this (8-digit hex number is used):
    Code:
    Please Login or Register to see the links
    Update:
    Nasty bug was found: when a multi-level JNX map is converted, the levels in IMG will come "upside down", so the most detailed JNX level becomes visible at less detailed zooms in the GPS.
    Last edited by AlexWhiter; 14th November 2013 at 17:25.

  8. #7
    Navigation software expert

    Giomen's Avatar
    Join Date
    Apr 2009
    Location
    Suomi-Russia
    Age
    49
    Posts
    2,578
    Rep Power
    589

    Default

    Best Post of the Month?
    Love your wife? Buy yourself a GPS for answering to her favorite question: "Dear, where are you?".

  9. #8
    Master
    Join Date
    Feb 2011
    Location
    Sofia
    Age
    31
    Posts
    919
    Rep Power
    213

    Default

    Honestly I can't understand its very much practical usage but ok. I think a simple script lets say geoTIFF to IMG like the tool GPX to IMG would have more popularity. Or at least I would use it more frequent.

  10. #9
    Navigation software expert AlexWhiter's Avatar
    Join Date
    Jun 2011
    Location
    Russia
    Posts
    170
    Rep Power
    269

    Default

    Quote Originally Posted by Giomen View Post
    Best Post of the Month?
    Please don't overestimate this proof-of-concept project. It's more for a testing, than for a real-life usage.

    In fact, this is just a step for a better understanding of IMG structure (partucularily, of RGN blocks huffman encoding in NT format) - I need a simple, yet reliable tool for making raster IMGs from a set of geo-referenced tiles.
    I'm still planing to make a standalone converter, and then a library, just like JNXLib, which could be used with to export raster IMGs from SASPlanet, GlobalMapper etc.
    I hope I won't get too lazy for finishing this

  11. #10
    Navigation software expert AlexWhiter's Avatar
    Join Date
    Jun 2011
    Location
    Russia
    Posts
    170
    Rep Power
    269

    Default

    Quote Originally Posted by ddabcd277 View Post
    Honestly I can't understand its very much practical usage but ok.
    The main reason for making this tool was to provide an alternative to JNX maps, but without their silly limitations, such as:
    1. device locking and firmware patching as a solution;
    2. inability to disable of any given map, not the whole set of maps.


    Quote Originally Posted by ddabcd277 View Post
    I think a simple script lets say geoTIFF to IMG like the tool GPX to IMG would have more popularity. Or at least I would use it more frequent.
    That simple script would also require GDAL tools, or anything else that can perform map reprojection and tiling from the command line

 

 
Page 1 of 14 12311 ... LastLast

Tags for this Thread

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
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.