[mkgmap-dev] africa map 2
From Gerd Petermann gpetermann_muenchen at hotmail.com on Mon Jan 5 13:03:34 GMT 2015
Hi Stephen, okay, seems to be a problem in splitter, it calculates tiles in the Atlantic. The reason seems to be the very small max-nodes value of 80000. I tried with 800000 and got a good result. Looking for a correction now. Gerd Date: Mon, 5 Jan 2015 22:54:16 +1000 From: steve.sgalowski at gmail.com To: mkgmap-dev at lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] africa map 2 splitter log file On Mon, Jan 5, 2015 at 10:52 PM, Gerd Petermann <gpetermann_muenchen at hotmail.com> wrote: Hi Stephen, sorry, did not want to sound impolite. If I am right, splitter ends with an OutOfMemoryError, and your script continues without notifying this and splitter.log will not directly show what's wrong. If you use java ... -jar splitter.jar ... > splitter.log 2> splitter.err you should find a message in splitter.err if something serious went wrong. Gerd Date: Mon, 5 Jan 2015 22:26:00 +1000 From: steve.sgalowski at gmail.com To: mkgmap-dev at lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] africa map 2 gerd , i will run the file again just for you sir ok stephen On Mon, Jan 5, 2015 at 10:24 PM, Gerd Petermann <gpetermann_muenchen at hotmail.com> wrote: Hi Steve, I assume that the heap for splitter is too small. If your machine allows it, use a larger value like -Xmx3000m . If not, don't use keep-complete. In any case, add > splitter.log after the last splitter option so that you get the log I am asking for. java ... -jar splitter.jar ... > splitter.log Gerd Date: Mon, 5 Jan 2015 22:15:29 +1000 From: steve.sgalowski at gmail.com To: mkgmap-dev at lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] africa map 2 @echo off rem --------------------------------------------------rem --- CreateIMG.bat - By Marco Certelli - Beta07 ---rem -------------------------------------------------- rem **** Define your default country **** set country=africa-latest rem ************************************* rem Available styles: drivemap, kleineisel, masterstyle, default, marine, noname, testset style=drivemap rem Available TYPfiles: DRIVEMAP.TYP, KLEINEISEL.TYP, MASTER.TYP, TEDDY.TYP, DOM.TYPset typfile=velwaus.TYP rem Put AddTypToIMG=yes to add TYPfile to gmapsupp.img (so it is active in garmin too)set AddTypToIMG=yes rem MapSource Family-ID: must be a unique (in mapsource) 3 digit number (000 to 999)set FID=890 rem MSDir shall contain the "existing" directory where mapsource installs mapsrem Next usually results in MSDir=C:\\Garminset MSDir=%systemdrive%\\Garmin rem Next usually results in MSDir=C:\\Program Files\\Garminrem set MSDir=%ProgramFiles%rem set MSDir=%MSDir:\=\\%rem set MSDir=%MSDir%\\Garminhen rem Available continents: europe, africa, asia, north-america, south-americaset continent= rem Just leave debug=no for production & to delete intermediate temporary files.set debug=no echo.echo ******************************************************echo * This script downloads (if needed) and compiles the *echo * OSM map data to generate a Garmin IMG routable map *echo ******************************************************echo. rem Override default country if a name is given to the batch as parameterif "%1" NEQ "" set country=%1 rem Ask user for a country name if no default and no parameter is setif "%country%" NEQ "" goto :Search4Map set /P country="Enter the country to build: "echo. :Search4Map if NOT EXIST OSM-Data mkdir OSM-Datacd OSM-Data rem 1) search for xxx.osm filerem set osmfile=%country%.osmrem if EXIST %osmfile% echo File OSM-Data\%osmfile% found (no download required)rem if EXIST %osmfile% GOTO :SplitMap rem 2) search for xxx.osm.bz2 filerem set osmfile=%country%.osm.bz2rem if EXIST %osmfile% echo File OSM-Data\%osmfile% found: delete it for a new downloadrem if EXIST %osmfile% GOTO :SplitMap rem 3) search for xxx.osm.pbf fileset osmfile=%country%.osm.pbfif EXIST %osmfile% echo File OSM-Data\%osmfile% found: delete it for a new downloadif EXIST %osmfile% GOTO :SplitMap echo.echo Downloading OSM data for %country% echo. ..\bin\wget http://download.geofabrik.de/openstreetmap/%continent%/%osmfile% if EXIST %osmfile% goto :SplitMapecho.echo *************************************************************echo *** SORRY: download of /%continent%/%osmfile% has FAILED!!!echo *** Check at http://download.geofabrik.de/osm/%continent%/echo *** and manually download %osmfile%echo *************************************************************echo.goto :END :SplitMap echo.echo Start converting %country% OSM data into IMG Map... if NOT EXIST ..\IMG-OSM-%country% mkdir ..\IMG-OSM-%country%cd ..\IMG-OSM-%country% if EXIST template.args goto :Compile echo.echo Splitting OSM-Data\%osmfile%. Please waitecho. rem start /low /b /wait java -enableassertions -Xmx1000m -jar ..\bin\splitter.jar --mapid=66%FID%001 --max-nodes=1000000 ..\OSM-Data\%osmfile% rem start /low /b /wait java -enableassertions -Xmx1250m -jar ..\bin\splitter.jar --mapid=66%FID%001 --output=xml ..\OSM-Data\%osmfile%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 :Compile echo.echo Compiling OSM-Data\%osmfile% into IMG, FID=%FID%. Please waitecho. set TypFileToAdd=if "%AddTypToIMG%" NEQ "yes" goto :NoTypToAddcopy "..\bin\typ\%typfile%" style.typ 2>nul 1>nul..\bin\TYPtool %FID% 1 style.typ >nulset TypFileToAdd=style.typ :NoTypToAdd 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%rem start /low /b /wait java -enableassertions -Xmx800m -jar ..\bin\mkgmap.jar --overview-levels --link-pois-to-ways --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0" --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="%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% start /low /b /wait java -enableassertions -Xmx500m -jar ..\bin\mkgmap.jar --housenumbers --overview-levels --link-pois-to-ways --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0" --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="%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% if EXIST 66%FID%001.img goto :Cleanupecho.echo ***********************************************echo *** SORRY: IMG compiling task has FAILED!!! ***echo ***********************************************echo.goto :END :Cleanup if "%debug%" NEQ "no" goto :MSPreparedel *.gz 2>nuldel *.pbf 2>nuldel areas.list 2>nuldel template.args 2>nul if EXIST %MSDir% goto :MSPrepareecho.echo MapSource Install files not prepared ("%MSDir%" not existing)goto :END :MSPrepare echo.echo Preparing MapSource Install (.reg)echo. copy ..\bin\typ\%typfile% style.typ 2>nul 1>nul rem preparing MapSource installer registry echo Windows Registry Editor Version 5.00 > IMG-OSM-%country%_MSInstall.regecho. >> IMG-OSM-%country%_MSInstall.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Garmin\Mapsource\Families\IMG-OSM-%country%] >> IMG-OSM-%country%_MSInstall.regrem TYPtool <family_id> <product_id> <stylefile>..\bin\TYPtool %FID% 1 style.typ >> IMG-OSM-%country%_MSInstall.regif EXIST style.typ echo "TYP"="%MSDir%\\IMG-OSM-%country%\\style.typ" >> IMG-OSM-%country%_MSInstall.regecho. >> IMG-OSM-%country%_MSInstall.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Garmin\Mapsource\Families\IMG-OSM-%country%\1] >> IMG-OSM-%country%_MSInstall.regecho "BMAP"="%MSDir%\\IMG-OSM-%country%\\66%FID%000.img" >> IMG-OSM-%country%_MSInstall.regecho "LOC"="%MSDir%\\IMG-OSM-%country%" >> IMG-OSM-%country%_MSInstall.regecho "TDB"="%MSDir%\\IMG-OSM-%country%\\66%FID%000.tdb" >> IMG-OSM-%country%_MSInstall.reg rem preparing un-installer registry echo Windows Registry Editor Version 5.00 > IMG-OSM-%country%_MSUnInstall.regecho. >> IMG-OSM-%country%_MSUnInstall.reg echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Garmin\Mapsource\Families\IMG-OSM-%country%] >> IMG-OSM-%country%_MSUnInstall.reg :END cd.. echo.echo ********************************************echo *** CreateIMG Script End - Press any key ***echo ******************************************** if "%1" EQU "" pause >nul the script i use gerd will look for the logs ok stephen On Mon, Jan 5, 2015 at 10:11 PM, Gerd Petermann <gpetermann_muenchen at hotmail.com> wrote: Hi Steve, okay, I asked you to check the splitter log or to post your scripts so that we may find out what is going wrong on your side. Gerd Date: Mon, 5 Jan 2015 21:59:29 +1000 From: steve.sgalowski at gmail.com To: mkgmap-dev at lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] africa map 2 received this one ok gerd i did try a new copy incl, the osm.bz file but failed as well stephen On Mon, Jan 5, 2015 at 9:47 PM, Gerd Petermann <gpetermann_muenchen at hotmail.com> wrote: Hi Steve, I got the impression that my answers don't reach you. If I get no answer on this post I'll stop trying to help. Gerd Date: Mon, 5 Jan 2015 17:41:02 +1000 From: steve.sgalowski at gmail.com To: mkgmap-dev at lists.mkgmap.org.uk Subject: [mkgmap-dev] africa map 2 re downloaded the osm.bz file , it also failed due to bounds exceptionafrica.pbf file . failed also , just 5 mb map file , when the input file is 731 mb pbf file osm.bz = 1.3 gb both have now failed Stephen _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150105/9b2b3497/attachment-0001.html>
- Previous message: [mkgmap-dev] africa map 2
- Next message: [mkgmap-dev] Unknown sea generation option 'floodblocker'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list