<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
<p>Hi Steve,</p>
<p><br>
</p>
<p>the screenshot shows the name of a *.osm.gz file. Please post a link to that file, too.</p>
<p><br>
</p>
<p>Gerd<br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Von:</b> mkgmap-dev-bounces@lists.mkgmap.org.uk &lt;mkgmap-dev-bounces@lists.mkgmap.org.uk&gt; im Auftrag von Steve Sgalowski &lt;steve.sgalowski@gmail.com&gt;<br>
<b>Gesendet:</b> Dienstag, 26. Januar 2016 09:29<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> Re: [mkgmap-dev] dasch map</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr"><a id="LPlnk262280" href="http://download.geofabrik.de/europe/dach-latest.osm.pbf">http://download.geofabrik.de/europe/dach-latest.osm.pbf</a><br>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<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=dach-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=mapst2</div>
<div><br>
</div>
<div>rem Available TYPfiles: DRIVEMAP.TYP, KLEINEISEL.TYP, MASTER.TYP, TEDDY.TYP, DOM.TYP</div>
<div>set typfile=velowaus.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=900</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><br>
</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&nbsp;</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>&nbsp;rem set osmfile=%country%.osm</div>
<div>&nbsp;rem if EXIST %osmfile% echo File OSM-Data\%osmfile% found (no download required)</div>
<div>rem &nbsp;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>&nbsp;set osmfile=%country%.osm.pbf</div>
<div>&nbsp;if EXIST %osmfile% echo File OSM-Data\%osmfile% found: delete it for a new download</div>
<div>&nbsp;if EXIST %osmfile% GOTO :SplitMap</div>
<div><br>
</div>
<div>echo.</div>
<div>echo Downloading OSM data for %country%&nbsp;</div>
<div>echo.</div>
<div><br>
</div>
<div>..\bin\wget <a href="http://download.geofabrik.de/openstreetmap/%continent%/%osmfile%">
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%/">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 -Xmx1200m -jar ..\bin\splitter.jar&gt; splitter.log --mapid=66%FID%001 --search-limit=200000 &nbsp;..\OSM-Data\%osmfile% --output=xml &nbsp; --resolution=13 --max-nodes=200000 --max-areas=50 --wanted-admin-level=5 --problem-report
 &nbsp;--keep-complete=false --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 -Xmx600m -jar ..\bin\mkgmap.jar &nbsp;--transparent --check-roundabouts --link-pois-to-ways &nbsp;--make-poi-index --reduce-point-density=2.6 --reduce-point-density-polygon=8 &nbsp; --index --levels=0:23,1:22,2:21,3:20 --make-poi-index
 --route &nbsp;--verbose --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 -Xmx700m -jar ..\bin\mkgmap.jar &nbsp;--process-destination &nbsp;--add-pois-to-areas &nbsp;--pois-to-areas-placement=tagelist --add-pois-to-lines --tdbfile --transparent --make-poi-index --reduce-point-density=2.6 --reduce-point-density-polygon=4
 &nbsp; --index --levels=0:24,1:23,2:22,3:21,4:20,5:19,6:18,7:16 --make-poi-index &nbsp;--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 -Xmx2400m -jar ..\bin\mkgmap.jar&gt;mkgmap.log &nbsp; --link-pois-to-ways &nbsp;--polygon-size-limits=&quot;23:15, 22:14, 21:13,20:12,19:11 18:10, 17:9, 16:8, 15:7, 14:6, 13:5, 12:4 ,11:3 &nbsp;10:2, 9:1, 8:0 &quot; &nbsp; --process-exits &nbsp;--keep-going
 --process-destination --merge-lines &nbsp;--style=default --pois-to-areas-placement=tagelist &nbsp;--tdbfile --transparent --make-poi-index --reduce-point-density=2.6 --reduce-point-density-polygon=4 &nbsp; --index --levels=0:24,1:23,2:22,3:21,4:20,5:19,6:18,7:16 &nbsp;--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>
<div><br>
</div>
<div><br>
</div>
<div>that is my script i use to split the file above&nbsp;</div>
<div><br>
</div>
<div>stephen&nbsp;</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jan 26, 2016 at 6: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 dir="ltr">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<p>Ahh, sorry, did not notice that mkgmap complains with a severe error.</p>
<p>Please send a link to the corresponding input file</p>
<p><br>
</p>
<p>Gerd<br>
</p>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Von:</b>
<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a> &lt;<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>&gt; im Auftrag von Gerd Petermann
 &lt;<a href="mailto:GPetermann_muenchen@hotmail.com" target="_blank">GPetermann_muenchen@hotmail.com</a>&gt;<br>
<b>Gesendet:</b> Dienstag, 26. Januar 2016 09:21<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> Re: [mkgmap-dev] dasch map</font>
<div>&nbsp;</div>
</div>
<div>
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>As you said: don't use keep-complete=false if you care about it</p>
<p><br>
</p>
<p>Gerd<br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Von:</b>
<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a> &lt;<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>&gt; im Auftrag von Steve Sgalowski
 &lt;<a href="mailto:steve.sgalowski@gmail.com" target="_blank">steve.sgalowski@gmail.com</a>&gt;<br>
<b>Gesendet:</b> Dienstag, 26. Januar 2016 05:54<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> [mkgmap-dev] dasch map</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">with keep complete &nbsp;false&nbsp;
<div>i get this warning msg up&nbsp;</div>
<div><br>
</div>
<div><br>
</div>
<div>any ideas what i should look for&nbsp;</div>
<div><br>
</div>
<div>my compile string is this&nbsp;</div>
<div>
<div><br>
</div>
<div>start /low /b /wait java -enableassertions -Xmx2400m -jar ..\bin\mkgmap.jar&gt;mkgmap.log &nbsp; --link-pois-to-ways &nbsp;--polygon-size-limits=&quot;23:15, 22:14, 21:13,20:12,19:11 18:10, 17:9, 16:8, 15:7, 14:6, 13:5, 12:4 ,11:3 &nbsp;10:2, 9:1, 8:0 &quot; &nbsp; --process-exits &nbsp;--keep-going
 --process-destination --merge-lines &nbsp;--style=default --pois-to-areas-placement=tagelist &nbsp;--tdbfile --transparent --make-poi-index --reduce-point-density=2.6 --reduce-point-density-polygon=4 &nbsp; --index --levels=0:24,1:23,2:22,3:21,4:20,5:19,6:18,7:16 &nbsp;--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>
<div><br>
</div>
<div><br>
</div>
<div>&nbsp; Stephen&nbsp;</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</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" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>