<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 <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Steve Sgalowski <steve.sgalowski@gmail.com><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> </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 "existing" 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 & 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 "%1" NEQ "" 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 "%country%" NEQ "" goto :Search4Map </div>
<div>set /P country="Enter the country to build: "</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%">
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> splitter.log --mapid=66%FID%001 --search-limit=200000 ..\OSM-Data\%osmfile% --output=xml --resolution=13 --max-nodes=200000 --max-areas=50 --wanted-admin-level=5 --problem-report
--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 "%AddTypToIMG%" NEQ "yes" goto :NoTypToAdd</div>
<div>copy "..\bin\typ\%typfile%" style.typ 2>nul 1>nul</div>
<div>..\bin\TYPtool %FID% 1 style.typ >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="%country%" --family-id=%FID% --mapname=66%FID%001 --overview-mapname=66%FID%000 --series-name="OSM-%country%" --family-name="OpenStreetMap: %country%" --style-file=..\bin\styles\
--style=%style% --description="%country%" -c ..\bin\template_basic.args -c template.args %TypFileToAdd%</div>
<div>rem start /low /b /wait java -enableassertions -Xmx600m -jar ..\bin\mkgmap.jar --transparent --check-roundabouts --link-pois-to-ways --make-poi-index --reduce-point-density=2.6 --reduce-point-density-polygon=8 --index --levels=0:23,1:22,2:21,3:20 --make-poi-index
--route --verbose --country-name="%country%" --family-id=%FID% --mapname=66%FID%001 --overview-mapname=66%FID%000 --series-name="OSM-%country%" --family-name="OpenStreetMap: %country%" --style-file=..\bin\styles\ --style=%style% --description="%country%"
-c ..\bin\template_basic.args -c template.args %TypFileToAdd%</div>
<div>rem start /low /b /wait java -enableassertions -Xmx700m -jar ..\bin\mkgmap.jar --process-destination --add-pois-to-areas --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:23,2:22,3:21,4:20,5:19,6:18,7:16 --make-poi-index --verbose --route --country-name="%country%" --family-id=%FID% --mapname=66%FID%001 --overview-mapname=66%FID%000 --series-name="OSM-%country%" --family-name="OpenStreetMap: %country%"
--style-file=..\bin\styles\ --style=%style% --description="%country%" -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>mkgmap.log --link-pois-to-ways --polygon-size-limits="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 10:2, 9:1, 8:0 " --process-exits --keep-going
--process-destination --merge-lines --style=default --pois-to-areas-placement=tagelist --tdbfile --transparent --make-poi-index --reduce-point-density=2.6 --reduce-point-density-polygon=4 --index --levels=0:24,1:23,2:22,3:21,4:20,5:19,6:18,7:16 --verbose
--route --country-name="%country%" --family-id=%FID% --mapname=66%FID%001 --overview-mapname=66%FID%000 --series-name="OSM-%country%" --family-name="OpenStreetMap: %country%" --style-file=..\bin\styles\ --style=%style% --description="%country%" -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 "%debug%" NEQ "no" goto :MSPrepare</div>
<div>del *.gz 2>nul</div>
<div>del *.pbf 2>nul</div>
<div>del areas.list 2>nul</div>
<div>del template.args 2>nul</div>
<div><br>
</div>
<div>if EXIST %MSDir% goto :MSPrepare</div>
<div>echo.</div>
<div>echo MapSource Install files not prepared ("%MSDir%" 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>nul 1>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 > IMG-OSM-%country%_MSInstall.reg</div>
<div>echo. >> IMG-OSM-%country%_MSInstall.reg</div>
<div><br>
</div>
<div>echo [HKEY_LOCAL_MACHINE\SOFTWARE\Garmin\Mapsource\Families\IMG-OSM-%country%] >> IMG-OSM-%country%_MSInstall.reg</div>
<div>rem TYPtool <family_id> <product_id> <stylefile></div>
<div>..\bin\TYPtool %FID% 1 style.typ >> IMG-OSM-%country%_MSInstall.reg</div>
<div>if EXIST style.typ echo "TYP"="%MSDir%\\IMG-OSM-%country%\\style.typ" >> IMG-OSM-%country%_MSInstall.reg</div>
<div>echo. >> IMG-OSM-%country%_MSInstall.reg</div>
<div><br>
</div>
<div>echo [HKEY_LOCAL_MACHINE\SOFTWARE\Garmin\Mapsource\Families\IMG-OSM-%country%\1] >> IMG-OSM-%country%_MSInstall.reg</div>
<div>echo "BMAP"="%MSDir%\\IMG-OSM-%country%\\66%FID%000.img" >> IMG-OSM-%country%_MSInstall.reg</div>
<div>echo "LOC"="%MSDir%\\IMG-OSM-%country%" >> IMG-OSM-%country%_MSInstall.reg</div>
<div>echo "TDB"="%MSDir%\\IMG-OSM-%country%\\66%FID%000.tdb" >> 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 > IMG-OSM-%country%_MSUnInstall.reg</div>
<div>echo. >> IMG-OSM-%country%_MSUnInstall.reg</div>
<div><br>
</div>
<div>echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Garmin\Mapsource\Families\IMG-OSM-%country%] >> 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 "%1" EQU "" pause >nul</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>that is my script i use to split the file above </div>
<div><br>
</div>
<div>stephen </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">
<<a href="mailto:GPetermann_muenchen@hotmail.com" target="_blank">GPetermann_muenchen@hotmail.com</a>></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> <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Gerd Petermann
<<a href="mailto:GPetermann_muenchen@hotmail.com" target="_blank">GPetermann_muenchen@hotmail.com</a>><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> </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> <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Steve Sgalowski
<<a href="mailto:steve.sgalowski@gmail.com" target="_blank">steve.sgalowski@gmail.com</a>><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> </div>
</div>
<div>
<div dir="ltr">with keep complete false
<div>i get this warning msg up </div>
<div><br>
</div>
<div><br>
</div>
<div>any ideas what i should look for </div>
<div><br>
</div>
<div>my compile string is this </div>
<div>
<div><br>
</div>
<div>start /low /b /wait java -enableassertions -Xmx2400m -jar ..\bin\mkgmap.jar>mkgmap.log --link-pois-to-ways --polygon-size-limits="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 10:2, 9:1, 8:0 " --process-exits --keep-going
--process-destination --merge-lines --style=default --pois-to-areas-placement=tagelist --tdbfile --transparent --make-poi-index --reduce-point-density=2.6 --reduce-point-density-polygon=4 --index --levels=0:24,1:23,2:22,3:21,4:20,5:19,6:18,7:16 --verbose
--route --country-name="%country%" --family-id=%FID% --mapname=66%FID%001 --overview-mapname=66%FID%000 --series-name="OSM-%country%" --family-name="OpenStreetMap: %country%" --style-file=..\bin\styles\ --style=%style% --description="%country%" -c ..\bin\template_basic.args
-c template.args %TypFileToAdd%</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div> Stephen </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>