Thanks for that. Success, I have now split the england map…
Now for the next part.
Think I am having some path issues, I will explain my paths.
c:/mapping/mkgmap-r2148 is where I am running the next stage. At this level I have placed all the *.osm.pbf files along with
template.args, options_GCC_GPS.args (copied from your webpage), mkgmap.jar.
Style files etc are located c:/mapping/mkgmap-r2148/examples/styles/munky_styles (this is a style I found that should give me everything I am after) inside this folder is also the munky.typ file.
The first 30 lines of the mkgmap batch file look like this:
@echo off
REM Batch file to launch mkgmap and compile GCC basemap tiles
setlocal
REM set mkgmap version
set mkgmapVer=-r2148
REM set inputs
set stylefile=/examples/styles/munky_styles
set optionsFile=options_GCC_GPS.args
REM TYP file
set typfile=“/examples/styles/munky_styles/munky.typ”
rem set typfile=“…/…/TYP files/mapnik/mapnik2.TYP”
call :GETDATEPARTS “%date%”
call :GETTIMEPARTS
REM run mkgkap
@echo Running mkgmap
@echo on
rem enable logging properties
java -Xmx1500m -ea -Dlog.config=logging.properties -jar mkgmap.jar --style-file=%stylefile% -c %optionsFile% %typfile%
rem standard compile
REM java -Xmx1500m -ea -jar mkgmap.jar --style-file=%stylefile% -c %optionsFile% %typfile%
rem default style, no TYP
rem java -Xmx1500m -ea -jar mkgmap.jar -c %optionsFile%
@echo off
@echo mkgmap finished: copying gmapsupp
I have tried modifying some of the paths to hopefully match my set up.
Then when I run this is the log file:
C:\mapping\mkgmap-r2148>mkgmap.bat
Running mkgmap
C:\mapping\mkgmap-r2148>rem enable logging properties
C:\mapping\mkgmap-r2148>java -Xmx1500m -ea -Dlog.config=logging.properties -jar
mkgmap.jar --style-file=/examples/styles/munky_styles -c options_GCC_GPS.args “/
examples/styles/munky_styles/munky.typ”
Failed to open logging config file logging.properties
Could not open file: 63247001.osm.gznull
Exception in thread “main” java.lang.NullPointerException
at uk.me.parabola.mkgmap.combiners.FileInfo.getFileInfo(FileInfo.java:13
9)
at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:413)
at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.ja
va:126)
at uk.me.parabola.mkgmap.main.Main.main(Main.java:112)
C:\mapping\mkgmap-r2148>rem standard compile
C:\mapping\mkgmap-r2148>REM java -Xmx1500m -ea -jar mkgmap.jar --style-file=/exa
mples/styles/munky_styles -c options_GCC_GPS.args “/examples/styles/munky_styles
/munky.typ”
C:\mapping\mkgmap-r2148>rem default style, no TYP
C:\mapping\mkgmap-r2148>rem java -Xmx1500m -ea -jar mkgmap.jar -c options_GCC_GP
S.args
mkgmap finished: copying gmapsupp
The system cannot find the file specified.
Finished!!!
Press any key to continue . . .
So it seems like it fails to open logging config file logging.properties?
Sorry to be a pain with this, its a great example for someone who is struggling to get to terms with mapping, your splitter instructions and batch files were great and a massive help. I think I need to set my paths up to match your batch files and I guess we should be away.