[mkgmap-dev] DEM size in Garmin Basemap > 16MB
From Gerd Petermann gpetermann_muenchen at hotmail.com on Fri Dec 22 21:16:56 GMT 2017
Hi Andrzej, with r4016 I've changed the limit for DEM files to 256 MB and it seems to work fine. Maybe I should better use a different writer class for DEM, the limit is in BufferedImgFileWriter but not in FileBackedImgFileWriter which we use for mdr files. Something to look at in the next days. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen at hotmail.com> Gesendet: Freitag, 22. Dezember 2017 20:22:06 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] DEM size in Garmin Basemap > 16MB Hi Andrzej, good to know. I assume the 16MB limit makes sense for other subfiles which only have 3-byte offsets. In DEM files every offset is stored with up to 4 bytes, so it it obvious that more than 16MB are intended. I've now found that there is already a method setMaxSize() which allows to set a different size and I am now testing the created img files. With gmapi format it looks good. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Andrzej Popowski <popej at poczta.onet.pl> Gesendet: Freitag, 22. Dezember 2017 18:50:31 An: mkgmap-dev at lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] DEM size in Garmin Basemap > 16MB Hi Gerd, I have added DEM to my maps using BuilDemFile and without any changes to splitter parameters. The biggest DEM was about 35MB and the biggest img about 40MB including 32MB of DEM. I haven't noticed any problems. Even more, I have build TDB using test version of mkgmap v3999, so mkgmap has no problems with reading big img with DEM. I think there is no superficial limit for single img. Internal structure of img is FAT-alike, and limits comes from this structure. You can get 256 FAT records for a subfile like DEM and 240 sector pointers in each record. With max sector size 64kB, it makes limit like nearly 4GB. I don't know if mkgamp uses fixed sector size for created img. If yes, then limit would be dependent on this value. -- Best regards, Andrzej _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] DEM size in Garmin Basemap > 16MB
- Next message: [mkgmap-dev] DEM size in Garmin Basemap > 16MB
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list