Can this be used for the birds eye JNX?
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.
[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.
Make sure the script will have permissions to create and delete subfolders in the folder it is extracted to.
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:
"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.
"DataBounds=<0 or 1>" - if set to 1 (default value), the IMG map will include DataBounds area to make it compatible with Monterra devices. If you are not going to use the map in Monterra, you can set this parameter to 0, in this case the map will compile a bit faster and the IMG file will be slightly smaller.
"VolumeSize=<decimal number>" - limits the size of the JNX tiles (in bytes) saved into a single IMG, and splits the map into several IMGs is necessary. Use this option to set the approximate size of IMG file, or in case when bld_gmap32 fails because LBL sub-file becomes too large. Default is 2Gb minus 5%.
Please note the quotes around these parameters are required, so the converter can be started like this:
1. All the JNX levels with the scales below 864 will be mapped into a lowest zoom level in IMG, it becomes visible from 5m to 200m.
2. If more than one level in your JNX is mapped to the same IMG map zoom, the converter will only use the JNX level with lowest scale value (i.e. the most detailed one).
3. Starting from version 1.6, the converter emulates the distribution of levels used in JNX maps - i.e. the tiles of some level are visible until the more detailed level becomes visible.
4. 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've implemented the IMG export in SAS.Planet. The export is available in its [Only registered and activated users can see links. ], and will most likely be included in the next stable release.
To compile IMG you'll need the same bld_gmap32 and gmt required by jnx2img.
Last edited by AlexWhiter; Yesterday at 05:33 AM. Reason: Recovering from the great void
Can this be used for the birds eye JNX?
The script is updated. Please redownload from the same location.
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):
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 05:25 PM.
Best Post of the Month?
Love your wife? Buy yourself a GPS for answering to her favorite question: "Dear, where are you?".
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.
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
1. device locking and firmware patching as a solution;
2. inability to disable of any given map, not the whole set of maps.