<div dir="ltr">gerd , i will run the file again just for you sir ok <div>stephen </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 5, 2015 at 10:24 PM, Gerd Petermann <span dir="ltr">&lt;<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi Steve,<br><br>I assume that the heap for splitter is too small.<br>If your machine allows it, use a larger value like -Xmx3000m .<br>If not, don&#39;t use keep-complete.<br><br>In any case, add &gt; splitter.log after<br>the last splitter option so that you get the log I am asking for.<br>java ... -jar splitter.jar ... &gt; splitter.log<br><br>Gerd<br><br><div><hr>Date: Mon, 5 Jan 2015 22:15:29 +1000<br>From: <a href="mailto:steve.sgalowski@gmail.com" target="_blank">steve.sgalowski@gmail.com</a><br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>Subject: Re: [mkgmap-dev] africa map 2<br><br><div dir="ltr"><div>@echo off</div><div><br></div><div>rem --------------------------------------------------</div><div>rem --- CreateIMG.bat - By Marco Certelli - Beta07 ---</div><div>rem --------------------------------------------------</div><div><br></div><div>rem **** Define your default country ****</div><div><br></div><div>set country=africa-latest</div><div><br></div><div>rem *************************************</div><div><br></div><div>rem Available styles: drivemap, kleineisel, masterstyle, default, marine, noname, test</div><div>set style=drivemap</div><div><br></div><div>rem Available TYPfiles: DRIVEMAP.TYP, KLEINEISEL.TYP, MASTER.TYP, TEDDY.TYP, DOM.TYP</div><div>set typfile=velwaus.TYP</div><div><br></div><div>rem Put AddTypToIMG=yes to add TYPfile to gmapsupp.img (so it is active in garmin too)</div><div>set AddTypToIMG=yes</div><div><br></div><div>rem MapSource Family-ID: must be a unique (in mapsource) 3 digit number (000 to 999)</div><div>set FID=890</div><div><br></div><div>rem MSDir shall contain the &quot;existing&quot; directory where mapsource installs maps</div><div>rem Next usually results in MSDir=C:\\Garmin</div><div>set MSDir=%systemdrive%\\Garmin</div><div><br></div><div>rem Next usually results in MSDir=C:\\Program Files\\Garmin</div><div>rem set MSDir=%ProgramFiles%</div><div>rem set MSDir=%MSDir:\=\\%</div><div>rem set MSDir=%MSDir%\\Garmin</div><div>hen </div><div>rem Available continents: europe, africa, asia, north-america, south-america</div><div>set continent=</div><div><br></div><div>rem Just leave debug=no for production &amp; to delete intermediate temporary files.</div><div>set debug=no</div><div><br></div><div><br></div><div>echo.</div><div>echo ******************************************************</div><div>echo * This script downloads (if needed) and compiles the *</div><div>echo * OSM map data to generate a Garmin IMG routable map *</div><div>echo ******************************************************</div><div>echo.</div><div><br></div><div>rem Override default country if a name is given to the batch as parameter</div><div>if &quot;%1&quot; NEQ &quot;&quot; set country=%1</div><div><br></div><div>rem Ask user for a country name if no default and no parameter is set</div><div>if &quot;%country%&quot; NEQ &quot;&quot; goto :Search4Map </div><div>set /P country=&quot;Enter the country to build: &quot;</div><div>echo.</div><div><br></div><div>:Search4Map</div><div><br></div><div>if NOT EXIST OSM-Data mkdir OSM-Data</div><div>cd OSM-Data</div><div><br></div><div>rem 1) search for xxx.osm file</div><div>rem set osmfile=%country%.osm</div><div>rem if EXIST %osmfile% echo File OSM-Data\%osmfile% found (no download required)</div><div>rem if EXIST %osmfile% GOTO :SplitMap</div><div><br></div><div>rem 2) search for xxx.osm.bz2 file</div><div>rem set osmfile=%country%.osm.bz2</div><div>rem if EXIST %osmfile% echo File OSM-Data\%osmfile% found: delete it for a new download</div><div>rem if EXIST %osmfile% GOTO :SplitMap</div><div><br></div><div>rem 3) search for xxx.osm.pbf file</div><div>set osmfile=%country%.osm.pbf</div><div>if EXIST %osmfile% echo File OSM-Data\%osmfile% found: delete it for a new download</div><div>if EXIST %osmfile% GOTO :SplitMap</div><div><br></div><div>echo.</div><div>echo Downloading OSM data for %country% </div><div>echo.</div><div><br></div><div>..\bin\wget <a href="http://download.geofabrik.de/openstreetmap/%continent%/%osmfile%" target="_blank">http://download.geofabrik.de/openstreetmap/%continent%/%osmfile%</a></div><div><br></div><div>if EXIST %osmfile% goto :SplitMap</div><div>echo.</div><div>echo *************************************************************</div><div>echo *** SORRY: download of /%continent%/%osmfile% has FAILED!!!</div><div>echo *** Check at <a href="http://download.geofabrik.de/osm/%continent%/" target="_blank">http://download.geofabrik.de/osm/%continent%/</a></div><div>echo *** and manually download %osmfile%</div><div>echo *************************************************************</div><div>echo.</div><div>goto :END</div><div><br></div><div><br></div><div>:SplitMap</div><div><br></div><div>echo.</div><div>echo Start converting %country% OSM data into IMG Map...</div><div><br></div><div>if NOT EXIST ..\IMG-OSM-%country% mkdir ..\IMG-OSM-%country%</div><div>cd ..\IMG-OSM-%country%</div><div><br></div><div>if EXIST template.args goto :Compile</div><div><br></div><div>echo.</div><div>echo Splitting OSM-Data\%osmfile%. Please wait</div><div>echo.</div><div><br></div><div>rem start /low /b /wait java -enableassertions -Xmx1000m -jar ..\bin\splitter.jar --mapid=66%FID%001 --max-nodes=1000000 ..\OSM-Data\%osmfile%</div><div><br></div><div>rem start /low /b /wait java -enableassertions -Xmx1250m -jar ..\bin\splitter.jar --mapid=66%FID%001 --output=xml ..\OSM-Data\%osmfile%</div><div>start /low /b /wait java -enableassertions -Xmx800m -jar ..\bin\splitter.jar --mapid=66%FID%001 ..\OSM-Data\%osmfile% --output=xml    --max-nodes=80000 --problem-report=problem.txt --keep-complete=true  --status-freq=120</div><div><br></div><div>:Compile</div><div><br></div><div>echo.</div><div>echo Compiling OSM-Data\%osmfile% into IMG, FID=%FID%. Please wait</div><div>echo.</div><div><br></div><div>set TypFileToAdd=</div><div>if &quot;%AddTypToIMG%&quot; NEQ &quot;yes&quot; goto :NoTypToAdd</div><div>copy &quot;..\bin\typ\%typfile%&quot; style.typ 2&gt;nul 1&gt;nul</div><div>..\bin\TYPtool %FID% 1 style.typ &gt;nul</div><div>set TypFileToAdd=style.typ</div><div><br></div><div>:NoTypToAdd</div><div><br></div><div>rem start /low /b /wait java -enableassertions -Xmx1000m -jar ..\bin\mkgmap.jar --country-name=&quot;%country%&quot; --family-id=%FID% --mapname=66%FID%001 --overview-mapname=66%FID%000 --series-name=&quot;OSM-%country%&quot; --family-name=&quot;OpenStreetMap: %country%&quot; --style-file=..\bin\styles\ --style=%style% --description=&quot;%country%&quot; -c ..\bin\template_basic.args -c template.args %TypFileToAdd%</div><div>rem start /low /b /wait java -enableassertions -Xmx800m -jar ..\bin\mkgmap.jar  --overview-levels  --link-pois-to-ways --polygon-size-limits=&quot;24:12, 18:10, 16:8, 14:4, 12:2, 11:0&quot;   --check-styles --process-exits  --merge-lines --add-pois-to-areas --style=default --pois-to-areas-placement=tagelist --add-pois-to-lines --tdbfile --transparent --make-poi-index --reduce-point-density=2.6 --reduce-point-density-polygon=4   --index --levels=0:24,1:22,2:20,3:18,4:16,5:14 --make-poi-index  --verbose --route --country-name=&quot;%country%&quot; --family-id=%FID% --mapname=66%FID%001 --overview-mapname=66%FID%000 --series-name=&quot;OSM-%country%&quot; --family-name=&quot;OpenStreetMap: %country%&quot; --style-file=..\bin\styles\ --style=%style% --description=&quot;%country%&quot; -c ..\bin\template_basic.args -c template.args %TypFileToAdd%</div><div><br></div><div>start /low /b /wait java -enableassertions -Xmx500m -jar ..\bin\mkgmap.jar    --housenumbers --overview-levels  --link-pois-to-ways --polygon-size-limits=&quot;24:12, 18:10, 16:8, 14:4, 12:2, 11:0&quot;   --process-exits  --merge-lines --add-pois-to-areas --style=default --pois-to-areas-placement=tagelist --add-pois-to-lines --tdbfile --transparent --make-poi-index --reduce-point-density=2.6 --reduce-point-density-polygon=4   --index --levels=0:24,1:22,2:20,3:18,4:16,5:14 --make-poi-index  --verbose --route --country-name=&quot;%country%&quot; --family-id=%FID% --mapname=66%FID%001 --overview-mapname=66%FID%000 --series-name=&quot;OSM-%country%&quot; --family-name=&quot;OpenStreetMap: %country%&quot; --style-file=..\bin\styles\ --style=%style% --description=&quot;%country%&quot; -c ..\bin\template_basic.args -c template.args %TypFileToAdd%</div><div><br></div><div>if EXIST 66%FID%001.img goto :Cleanup</div><div>echo.</div><div>echo ***********************************************</div><div>echo *** SORRY: IMG compiling task has FAILED!!! ***</div><div>echo ***********************************************</div><div>echo.</div><div>goto :END</div><div><br></div><div><br></div><div>:Cleanup</div><div><br></div><div>if &quot;%debug%&quot; NEQ &quot;no&quot; goto :MSPrepare</div><div>del *.gz 2&gt;nul</div><div>del *.pbf 2&gt;nul</div><div>del areas.list 2&gt;nul</div><div>del template.args 2&gt;nul</div><div><br></div><div>if EXIST %MSDir% goto :MSPrepare</div><div>echo.</div><div>echo MapSource Install files not prepared (&quot;%MSDir%&quot; not existing)</div><div>goto :END</div><div><br></div><div><br></div><div>:MSPrepare</div><div><br></div><div>echo.</div><div>echo Preparing MapSource Install (.reg)</div><div>echo.</div><div><br></div><div>copy ..\bin\typ\%typfile% style.typ 2&gt;nul 1&gt;nul</div><div><br></div><div><br></div><div>rem preparing MapSource installer registry</div><div><br></div><div>echo Windows Registry Editor Version 5.00 &gt; IMG-OSM-%country%_MSInstall.reg</div><div>echo. &gt;&gt; IMG-OSM-%country%_MSInstall.reg</div><div><br></div><div>echo [HKEY_LOCAL_MACHINE\SOFTWARE\Garmin\Mapsource\Families\IMG-OSM-%country%] &gt;&gt; IMG-OSM-%country%_MSInstall.reg</div><div>rem TYPtool &lt;family_id&gt; &lt;product_id&gt; &lt;stylefile&gt;</div><div>..\bin\TYPtool %FID% 1 style.typ &gt;&gt; IMG-OSM-%country%_MSInstall.reg</div><div>if EXIST style.typ echo &quot;TYP&quot;=&quot;%MSDir%\\IMG-OSM-%country%\\style.typ&quot; &gt;&gt; IMG-OSM-%country%_MSInstall.reg</div><div>echo. &gt;&gt; IMG-OSM-%country%_MSInstall.reg</div><div><br></div><div>echo [HKEY_LOCAL_MACHINE\SOFTWARE\Garmin\Mapsource\Families\IMG-OSM-%country%\1] &gt;&gt; IMG-OSM-%country%_MSInstall.reg</div><div>echo &quot;BMAP&quot;=&quot;%MSDir%\\IMG-OSM-%country%\\66%FID%000.img&quot; &gt;&gt; IMG-OSM-%country%_MSInstall.reg</div><div>echo &quot;LOC&quot;=&quot;%MSDir%\\IMG-OSM-%country%&quot; &gt;&gt; IMG-OSM-%country%_MSInstall.reg</div><div>echo &quot;TDB&quot;=&quot;%MSDir%\\IMG-OSM-%country%\\66%FID%000.tdb&quot; &gt;&gt; IMG-OSM-%country%_MSInstall.reg</div><div><br></div><div>rem preparing un-installer registry</div><div><br></div><div>echo Windows Registry Editor Version 5.00 &gt; IMG-OSM-%country%_MSUnInstall.reg</div><div>echo. &gt;&gt; IMG-OSM-%country%_MSUnInstall.reg</div><div><br></div><div>echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Garmin\Mapsource\Families\IMG-OSM-%country%] &gt;&gt; IMG-OSM-%country%_MSUnInstall.reg</div><div><br></div><div><br></div><div>:END</div><div><br></div><div>cd..</div><div><br></div><div>echo.</div><div>echo ********************************************</div><div>echo *** CreateIMG Script End - Press any key ***</div><div>echo ********************************************</div><div><br></div><div>if &quot;%1&quot; EQU &quot;&quot; pause &gt;nul</div><div><br></div><div>the script i use gerd </div><div>will look for the logs ok </div><div>stephen </div><div><br></div><div><br></div></div><div><br><div>On Mon, Jan 5, 2015 at 10:11 PM, Gerd Petermann <span dir="ltr">&lt;<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>&gt;</span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi Steve,<br><br>okay, I asked you to check the splitter log or<br>to post your scripts so that we may find out<br>what is going wrong on your side.<br><br>Gerd<br><br><div><hr>Date: Mon, 5 Jan 2015 21:59:29 +1000<br>From: <a href="mailto:steve.sgalowski@gmail.com" target="_blank">steve.sgalowski@gmail.com</a><br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>Subject: Re: [mkgmap-dev] africa map 2<br><br><div dir="ltr">received this one ok gerd <div><br></div><div>i did  try a new copy incl, the <a href="http://osm.bz" target="_blank">osm.bz</a> file but failed as well </div><div>stephen </div><div><br></div></div><div><br><div>On Mon, Jan 5, 2015 at 9:47 PM, Gerd Petermann <span dir="ltr">&lt;<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>&gt;</span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi Steve,<br><br>I got the impression that my answers don&#39;t reach you.<br>If I get no answer on this post I&#39;ll stop trying to help.<br><br>Gerd<br><br><div><hr>Date: Mon, 5 Jan 2015 17:41:02 +1000<br>From: <a href="mailto:steve.sgalowski@gmail.com" target="_blank">steve.sgalowski@gmail.com</a><br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>Subject: [mkgmap-dev] africa map 2<br><br><div dir="ltr">re downloaded the <a href="http://osm.bz" target="_blank">osm.bz</a> file , it also failed  due to bounds exception<div>africa.pbf file . failed also , just 5 mb map file , when the input file is 731 mb pbf file </div><div><a href="http://osm.bz" target="_blank">osm.bz</a> = 1.3 gb </div><div><br></div><div>both have now failed </div><div><br></div><div>Stephen </div><div><br></div></div>
<br>_______________________________________________
mkgmap-dev mailing list
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div>                                               </div></div>
<br>_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br></blockquote></div><br></div>
<br>_______________________________________________
mkgmap-dev mailing list
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div>                                               </div></div>
<br>_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br></blockquote></div><br></div>
<br>_______________________________________________
mkgmap-dev mailing list
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div>                                               </div></div>
<br>_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br></blockquote></div><br></div>