2 Gb size limit gmapsupp?

I have noticed that Basecamp and some (not all) GPS devices fails to read gmapsupp.img's > 2Gb size generated by mkgmap. Is this a known issue? One example you can download at: https://docs.google.com/leaf?id=0B5LoKTN293hkb3FBVmg1OGFROWVjNHZJQU5XMDdGQQ&... I tested it with other files and everytime above or around the 2 Gb size the gmapsupp.img seemed corrupt (you will notice a red progress bar instead of a green one when opening the image in Basecamp). On a Dakota I can browse the map without problems, other users reported the map is visible in the menu but not visible on the map screen (Oregon, Gmap62). If I generate the gmapsupp.img with Mapsource everything works as expected.

On 08/03/12 17:42, Minko wrote:
I have noticed that Basecamp and some (not all) GPS devices fails to read gmapsupp.img's> 2Gb size generated by mkgmap. Is this a known issue?
I think it was only known to work up to 2GB. I think it could work up to 4GB, apart from a comparison overflowing due to integers being signed. Could you try the attached patch please. ..Steve
One example you can download at: https://docs.google.com/leaf?id=0B5LoKTN293hkb3FBVmg1OGFROWVjNHZJQU5XMDdGQQ&...
This is giving Internal server error at the moment.

Thanks Steve, I'm sorry I can't try that patch. The Google docs public links are having issues at the moment, maybe this will work: https://docs.google.com/file/d/0B5LoKTN293hkb3FBVmg1OGFROWVjNHZJQU5XMDdGQQ/e...

On 20/03/12 11:19, Minko wrote:
Steve, can you upload a patched mkgmap version so I can test it?
No problem, here it is: http://files.mkgmap.org.uk/download/63/mkgmap.jar ..Steve

Thanks, Do I need to compile the tiles again with this patched version, or can I use already compiled img's with a previous mkgmap release to make a gmapsupp? The last didn't work.

Hi you only need to re-create the gmapsupp. So it isn't working then. Is it possible for you to upload the non working one somewhere please. ..Steve Minko <ligfietser@online.nl> wrote:
Thanks, Do I need to compile the tiles again with this patched version, or can I use already compiled img's with a previous mkgmap release to make a gmapsupp? The last didn't work. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

I uploaded the file here: https://docs.google.com/file/d/0B5LoKTN293hkb3FBVmg1OGFROWVjNHZJQU5XMDdGQQ/e... Steve wrote:
So it isn't working then. Is it possible for you to upload the non working one somewhere please.

On 21/03/12 10:15, Minko wrote:
I uploaded the file here: https://docs.google.com/file/d/0B5LoKTN293hkb3FBVmg1OGFROWVjNHZJQU5XMDdGQQ/e...
Thanks for this - sorry I've been away - just been able to look at it. There are two problems, the first is for sizes over 2GB which is fixed with the attached patch (jar file at URL: http://files.mkgmap.org.uk/download/64/mkgmap.jar ) this may work if --index is not given. If --index is given, then the size of the index is not included, and the size recorded in the img header may be too small. I'll see if I can fix that tomorrow. Since the size of the index is never included, that means that the index may not work for any size gmapsupp on any device where the sizes recorded in the img header are important. May be the cause of problems as reported on the forum (eg. http://forum.openstreetmap.org/viewtopic.php?id=15992) Even on such devices it may sometimes work, but the larger the file, the more likely it is that it will be wrong. ..Steve

Steve, I tested your patch: --index not given: Map shows up in Basecamp as well as on the device (Dakota) --index given: Map shows up in Basecamp but not on the device Regards, Minko

Hi
I tested your patch:
--index not given: Map shows up in Basecamp as well as on the device (Dakota) --index given: Map shows up in Basecamp but not on the device
Thanks. I created a "2gb" branch so you will be able to download further updates from the main download page. Could you try the current mkgmap (mkgmap-2gb-r2259.jar) since I have made a correction to the calculation of the partition sizes in the img file and the things I know about are I believe correct. It works on basecamp including finding things with the index. I was wrong about the index size not being included so there are no obvious problems remaining. ..Steve
participants (2)
-
Minko
-
Steve Ratcliffe