[mkgmap-dev] Index branch - success!
From Steve Ratcliffe steve at parabola.me.uk on Sat Feb 12 15:42:48 GMT 2011
On 12/02/11 15:32, WanMil wrote: > I observed that the MapSource search menu is disabled if the MDR file is > larger than 0x7FFFFFF (134217727) bytes. > > Maybe in this case a flag must be set? My guess is in ImgHeader: // This sectors, head, cylinders stuff appears to be used by mapsource // and they have to be larger than the actual size of the map. It // doesn't appear to have any effect on a garmin device or other software. int sectors = 0x20; // 0x20 appears to be a max header.putShort(OFF_SECTORS, (short) sectors); int heads = 0x20; // 0x20 appears to be max header.putShort(OFF_HEADS, (short) heads); int cylinders = 0x100; // gives 128M will try more later Try boosting cylinders to 0x200, or try to find if there is a maximum useful value like it appears that there is for the others. ..Steve
- Previous message: [mkgmap-dev] Index branch - success!
- Next message: [mkgmap-dev] Index branch - success!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list