[mkgmap-dev] Memory problems since 1245
From Du Plessis, Bennie Bennie.DuPlessis at sappi.com on Tue Oct 6 08:29:16 BST 2009
Steve, Thanks for your advice. >I know that sometimes --generate-sea can take a long time. Also if >you are creating a map for a country that has lots of tags on every >node, then it will take a lot more memory. This is unfortunate and I >plan to fix that problem, but it does mean that you should probably >split the file into more pieces if that is the case. You are running >java with more virtual memory than you have physical memory on your >machine which is also guaranteed to be slow. Like Apollinaris says: --generate-sea takes very long. And it doesn't work well with tiles, and depends on --ignore-osm-bounds which buggers intertile routing. So I compiled --generate-sea with a style with nothing but the coastline, which ran for 1.5 hr and gave me a lovely map with the land & sea seperated but nothing else. The plan is to use this in a mapset if I want to have a blue sea. Almost like an overlay, but maybe an underlay? >For me, it takes just over 4 minutes to do the UK split into 14 tiles, >and 8 seconds to make the index. >I would recommend that you run the index creation separately from >creating the .img files. The index should only take a few seconds to >create once you have some .img files to work with, and will give you a >lot more time to experiment if things don't work the first time. >Then run mkgmap with the --index on all the img file(s) that were >created in the previous step, apart from the overview map file (called >by default osmmap.img in the mdr branch, or 63240000.img in the >mainline). Along with --index you will need as a >minimum --family-id but there is no harm in repeating all the other >options. Then I compiled the img with 1260, --generate-sea off, --index on - I think the mdr branch is not included in 1260 yet? Because I only got the normal Imgs & tdbs.(this took max 5 minutes) Then I compiled with 1257 and --index. Gave me the mdr's and mdx's within 2 seconds. (I just realised I did not make the maps transparent, so I'll probably have to do it again - no sweat it takes less than 10 min without generate-sea.) Now I try to send it to mapsource - And realise I am still as stupid as I've always been :-/ [HKEY_LOCAL_MACHINE\Software\Garmin\MapSource\Families\uk-test] (uk-test = family-name?) "ID"=hex:8d,03 (Family ID? How to convert 0005 to this format? Hex:05,00?) "IDX"="c:\\maps\\osm\\osmmap.mdx" (overviewmapname.mdx) "MDR"="c:\\maps\\osm\\osmmap_mdr.img" (overviewmapname_mdr.mdx) [HKEY_LOCAL_MACHINE\Software\Garmin\MapSource\Families\uk-test\1] (1 = ?product ID? FamilyID?just 1? "BMAP"="c:\\maps\\osm\\osmmap.img" (overviewmapname.img) "LOC"="c:\\maps\\osm\\" "TDB"="c:\\maps\\osm\\osmmap.tdb" (overviewmapname.tdb) Thanks for the great work on this project. Every new dev is as exciting as the birth of a new baby, and I love to read how you all work through the various hick-ups & challenges! BennieD ##################################################################################### Scanned by MailMarshal - Marshal's comprehensive email content security solution. Download a free evaluation of MailMarshal at www.marshal.com #####################################################################################
- Previous message: [mkgmap-dev] Memory problems since 1245
- Next message: [mkgmap-dev] Memory problems since 1245
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list