You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#26 2012-01-09 13:51:12
- ajoessen
- Member
- Registered: 2009-09-16
- Posts: 2,074
Re: Newbie Map Creator
@ajoessen: you mentioned earlier in this thread that the TYP extension from the typfile should be in capitals, but I see no problems with typ in lowercase letters. Is this not working good in a specific unit or OS?
It works on BaseCamp and QLandkaretGT, but on the Garmin unit it will not be recognized. You will get a map with standard Garmin type lines and POIs. If your typfile is not much away from that, you might not see it.
Greetings,
ajoessen
Offline
#27 2012-01-09 15:22:05
- ligfietser
- Member

- Registered: 2008-10-09
- Posts: 5,353
- Website
Re: Newbie Map Creator
It works on BaseCamp and QLandkaretGT, but on the Garmin unit it will not be recognized. You will get a map with standard Garmin type lines and POIs. If your typfile is not much away from that, you might not see it.
Greetings,
ajoessen
Well, I understand you know my Openfietsmap so you can see it is quite different from the standard Garmin types. I'm not using capitals for TYP but I guess Mapsource and mkgmap automatically convert this from typ into TYP as I look into my gmapsupp. I have no experience with Qlandkarte though.
Offline
#28 2012-01-23 22:16:38
- richlewt
- Member
- Registered: 2011-12-12
- Posts: 10
Re: Newbie Map Creator
So splitter is splitting files and using names 63247001 onwards? And mkgmap has no problem until it gets to 63247029? Is that the last file? If so, make sure there is at least one empty line after it in your option_GCC_GPS.args file (i.e. the last line in that file should be empty about from a hard return) - that might be the source of the null issue. As far as not being able to open the styles file, there must be something wrong with your relative paths. Can you post your folder structure?
Oh, and try removing the trailing / from your definition of the style file path
Hi
Been away on holiday for 2 weeks, just returned to see this thread has taken off!!!
To answer your questions.
1) 63247029 is the last file.
2) I have made sure that option_GCC_GPS.args file has two empty lines at the end.
3) Folder structure is
c:\mapping\mkgmap-r2148 this is where i run my mkgmap.bat from and all the *.osm.pbf files are kept, along with template.args, logging.properties, option_GCC_GPS.args
Style files are located here C:\mapping\mkgmap-r2148\examples\styles\munky_styles at this level I have munky.TYP, lines, options, points etc.
Just done another run with the modified option_GCC_GPS.args file and now get:
C:\mapping>cd mkgmap-r2148
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"
Could not open style /examples/styles/munky_styles
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 . . .
I now notice from line above starting C:\mapping\mkgmap-r2148>REM java -Xmx1500m that the line contains forward and backslashes, is this ok?
Many thanks to all who have taken the trouble to answer. Hopefully other newbies will benefit from all this.
Offline
#29 2012-02-07 19:08:04
- richlewt
- Member
- Registered: 2011-12-12
- Posts: 10
Re: Newbie Map Creator
Anyone any clues?
Offline
#30 2012-02-07 22:11:52
- Yggdrasil
- Member

- Registered: 2010-09-12
- Posts: 187
Re: Newbie Map Creator
richlewt,
try to remove the first slash in /examples/styles/...
Edit: It does not matter if slahes or backslashes, but the first slash in --stylefile=/examples/... makes it fail
Last edited by Yggdrasil (2012-02-07 22:13:40)
Offline
#31 2012-02-21 18:42:50
- richlewt
- Member
- Registered: 2011-12-12
- Posts: 10
Re: Newbie Map Creator
richlewt,
try to remove the first slash in /examples/styles/...Edit: It does not matter if slahes or backslashes, but the first slash in --stylefile=/examples/... makes it fail
Hi
That finally worked!!!! I have now managed to produce a map of the uk to more or less what I was after. I dont know if anyone can help me but I now wish to highlight and display the numbers of National and Regional Cycle Network roads. In the lines file I have a line that reads highway=cycleway [0x17 road_class=0 road_speed=1 resolution 23] . What do I need to add to this line to display the numbers?
Thanks for all the help on this thread.
Offline
#32 2012-02-21 19:00:07
- ligfietser
- Member

- Registered: 2008-10-09
- Posts: 5,353
- Website
Re: Newbie Map Creator
You have to add those route relations to the relation style file first, see wilpin's post at http://forum.openstreetmap.org/viewtopic.php?id=15055
Also some examples you can find in
http://www.mkgmap.org.uk/svn/wsvn/mkgma … /relations and
http://www.mkgmap.org.uk/svn/wsvn/mkgma … ycle/lines
Last edited by ligfietser (2012-02-21 19:03:15)
Offline