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.***
#1 2013-01-22 03:01:20
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Weird problem with style file
Hello,
I am building my maps with same routine just using latest splitter and mkgmap.
Now I don't see same map in qlandkartegt and in my Garmin unit.
In qlandkatregt map looks as expected but in Garmin it looks like just some default style file and TYP file was used and not main custom one.
Here is my commands:
java -ea -Xmx6144m -jar mkgmap-r2459/mkgmap.jar test19.TYP --precomp-sea=/media/MEGA/MAPING/sea --bounds=/media/MEGA/MAPING/bounds_20121230 --style-file=default-mira -c default-mira/arguments LAND/6324*.osm.pbf CONTOUR/contour*.osm.pbf
Argument file:
family-id = 2222
product-id = 1
mapname = 22220001
family-name = Czech
description = Hiking map of Czech
country-name = Czech
country-abbr = CZ
make-all-cycleways
max-jobs = 2
add-pois-to-areas
add-pois-to-lines
gmapsupp
latin1
#route
#index
verbose
I checked if FID and PID in argument file and TYP file are matching and they does.
Any idea what might be wrong?
mira
Offline
#2 2013-01-22 09:12:11
- ligfietser
- Member

- Registered: 2008-10-09
- Posts: 5,353
- Website
Re: Weird problem with style file
Maybe it helps if you put test19.TYP after all the other parameters?
Offline
#3 2013-01-23 18:16:26
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: Weird problem with style file
Maybe it helps if you put test19.TYP after all the other parameters?
That's make a trick!
Many thanks!
BTW I am editing my TYP file in TYPviewer and there are some options for header size.
What header size is recommended or it doesn't matter?
regards
mira
Offline
#4 2013-01-25 17:13:17
- Bernhard Hiller
- Member

- Registered: 2011-05-10
- Posts: 1,122
Re: Weird problem with style file
Please note that qlandkartegt selects the TYP at runtime - whichever *.TYP file is found in the same folder as the map proper, can be selected to display the map; you can also view your map with different TYP files without the need to create it again.
With Garmin, the TYP file has to be compiled into the map, it becomes part of the map. I normally use gmt.exe for that purpose.
Offline
#5 2013-01-26 08:14:01
- wilpin
- Member
- Registered: 2009-11-22
- Posts: 79
- Website
Re: Weird problem with style file
With TYP files, the higher the header the more extra information is included, ie sdk references,extra commercial icons or active routing. If your TYP file does not contain such information you can just stick to &5B to save space.
For more information see my typformat.pdf www.pinns.co.uk/osm/typformat.html
Offline
#6 2013-01-27 12:32:09
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: Weird problem with style file
Please note that qlandkartegt selects the TYP at runtime - whichever *.TYP file is found in the same folder as the map proper, can be selected to display the map; you can also view your map with different TYP files without the need to create it again.
Right. My problem was that I was not aware that my custom TYP was not used during building a map due bad position in front of parameters.
Maybe it would be useful to have some warning in mkgmap for this situation.
Or maybe just print information during building a map which TYP file was used.
With Garmin, the TYP file has to be compiled into the map, it becomes part of the map. I normally use gmt.exe for that purpose.
I am building my maps on Debian so I am trying avoid native windows apps even it is sometimes possible to use them.
thank you
mira
Offline
#7 2013-01-27 12:48:37
- popej
- Member

- Registered: 2008-09-20
- Posts: 500
- Website
Re: Weird problem with style file
You can try linux version of GMapTool: http://www.gmaptool.eu/en/content/linux-version
popej
Offline
#8 2013-01-27 15:24:47
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: Weird problem with style file
With TYP files, the higher the header the more extra information is included, ie sdk references,extra commercial icons or active routing. If your TYP file does not contain such information you can just stick to &5B to save space.
Ok thank you.
I am using just symbols from this document... starting on page 107 ... :
http://ebookbrowse.com/cgpsmapper-usrma … -d12237465
Does it mean that I dont need extra POIs and I should be fine with old header (91 old format )?
mira
Offline
#9 2013-01-28 13:47:17
- wilpin
- Member
- Registered: 2009-11-22
- Posts: 79
- Website
Re: Weird problem with style file
You are fine with the old header (91 - &5b)
This would allow for all your usual POIs, as in page 107
The 'extra pois' are generally used in some NT TOPO maps .
They tend to be commercial logos but could also be famous 3d landmarks or buildings.
Because they require a different. not fully understood, (NT) img structure, such POIs are at present not supported by mkgmap or cgpsmapper.
Offline
#10 2013-01-29 02:34:01
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: Weird problem with style file
You are fine with the old header (91 - &5b)
This would allow for all your usual POIs, as in page 107The 'extra pois' are generally used in some NT TOPO maps .
They tend to be commercial logos but could also be famous 3d landmarks or buildings.
Because they require a different. not fully understood, (NT) img structure, such POIs are at present not supported by mkgmap or cgpsmapper.
Thank you!
I have one other issue with POIs.
Although I now build my map correctly with my TYP file I still see on some places POIs icon which are not made by my TYP file.
These icon having same graphical style as on map which I build accidentally without my TYP.
I was checking these places on osm with Potlatch, but there is really nothing!
Any idea what's going on?
regards
mira
Offline
#11 2013-01-29 09:40:47
- ligfietser
- Member

- Registered: 2008-10-09
- Posts: 5,353
- Website
Re: Weird problem with style file
Maybe those pois are created by mkgmap from areas, do you have --add-pois-to-areas in your options?
Offline
#12 2013-01-29 15:36:47
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: Weird problem with style file
Maybe those pois are created by mkgmap from areas, do you have --add-pois-to-areas in your options?
Yes, I am using --add-pois-to-areas. I will try build map without --add-pois-to-areas to confirm this a problem.
But I would like to use --add-pois-to-areas .... this argument helps me add names for small islands to my map.
Or exists some tricky way to add pois just to some areas e.g. islands?
regards
mira
Offline
#13 2013-01-29 18:25:39
- ligfietser
- Member

- Registered: 2008-10-09
- Posts: 5,353
- Website
Re: Weird problem with style file
Yes, those artificial points gets a tag mkgmap:area2poi=true
For example, if you dont want a poi created from place=city polygons you can add this rule in the points file:
place=city & mkgmap:area2poi=true {delete place}
Or, if you have --add-pois-to-lines you can add for example this rule in your points file:
amenity=* & mkgmap:line2poi=true {delete amenity}
Offline
#14 2013-01-30 00:53:55
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: Weird problem with style file
I will try build map without --add-pois-to-areas to confirm this a problem.
I removed --add-pois-to-areas and --add-pois-to-lines too but these foreigner POIs are still there ![]()
regards
mira
Offline
#15 2013-01-30 09:44:01
- kukuk
- Member
- Registered: 2011-09-13
- Posts: 225
- Website
Re: Weird problem with style file
miramikes wrote:I will try build map without --add-pois-to-areas to confirm this a problem.
I removed --add-pois-to-areas and --add-pois-to-lines too but these foreigner POIs are still there
If you say that this icons are not from your TYP file, I would go through your style files and compare them with your TYP file, which rules are using IDs which are not in your TYP file.
If you found your rule, we can tell you what happens.
mkgmap does not add POIs which are not listed in your style file. So there must be something wrong, maybe a number written wrongly.
Else this POIs are not coming from your map, but you have a second map or a gpi file on your device, from which this POIs are coming.
Thorsten
Offline
#16 2013-01-30 12:53:44
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: Weird problem with style file
Else this POIs are not coming from your map, but you have a second map or a gpi file on your device, from which this POIs are coming.
I have just osm map anabled and garmin base map disabled. I never loaded any gpi files intentionally ... but anyway I was searching for them and didn't found any.
I also removed all gpx files.
But still same.
If you say that this icons are not from your TYP file, I would go through your style files and compare them with your TYP file, which rules are using IDs which are not in your TYP file.
If you found your rule, we can tell you what happens.
I was checking my points and TYP file quickly and will do more later ... but nothing found. I am building map without --add-pois-to-areas and --add-pois-to-lines so probably only point file can produce this issue.
I was also checking osm map if there are some entries on these places but really nothing is there.
And interesting is that these icons are not on all places but I can see them just around Prague airport area.
Here is screenshot from my unit:
https://plus.google.com/u/0/photos/1042 … 2498868065
1) picture ...anchor and green dots
2) picture ...no icon is mine excet left down black square
3) picture ... "scales" "green fish" and something orange
4) picture ... orange flag
my points and TYP file can be downloaded here (mira-typ.txt is my TYP file):
https://github.com/miramikes/garmin_hiking_map
mira
Offline
#17 2013-01-30 15:02:47
- ligfietser
- Member

- Registered: 2008-10-09
- Posts: 5,353
- Website
Re: Weird problem with style file
Try gpsmapedit to see what kind of garmin types those mysterious pois have, you can also see if those pois are in your osm img file, maybe they are not even in your osm file at all.
Offline
#18 2013-01-31 00:12:36
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: Weird problem with style file
Try gpsmapedit to see what kind of garmin types those mysterious pois have, you can also see if those pois are in your osm img file, maybe they are not even in your osm file at all.
I checked tile where these pois should be with gpsmapedit but nothing there again. ![]()
Also I think that if I would have problem in points file rules I would get these problems on more places and probably not so many different kind of icons.
regards
mira
Offline
#19 2013-01-31 09:41:12
- ligfietser
- Member

- Registered: 2008-10-09
- Posts: 5,353
- Website
Re: Weird problem with style file
I checked tile where these pois should be with gpsmapedit but nothing there again.
Well, that means those pois are not from mkgmap and OSM!
It must be from your background GPS map or other maps on your gps so there is nothing you can do about it with your style and typ files.
There is maybe another solution, do you use a background polygon? If you have one, the pois from other maps are not visible anymore.
I think the default is 0x27, you must give it the lowest priority (1) and a bitmap colour.
Last edited by ligfietser (2013-01-31 09:44:03)
Offline
#20 2013-02-01 03:07:17
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: Weird problem with style file
There is maybe another solution, do you use a background polygon? If you have one, the pois from other maps are not visible anymore.
I think the default is 0x27, you must give it the lowest priority (1) and a bitmap colour.
I'm just trying solve this issue with background polygon.
I think it should be 0x4b. I made it "white" in my TYP file, but I am not sure if it was builded into my map.
It should be defined somewhere in polygons file? Or there is some mkgmap argument?
regards
mira
Offline
#21 2013-02-01 09:43:50
- ligfietser
- Member

- Registered: 2008-10-09
- Posts: 5,353
- Website
Re: Weird problem with style file
I use --generate-sea=land-tag=natural=background
In my polygons file I have a polygon rule
natural=background [0x010100 resolution 14]
Offline
#22 2013-02-01 14:26:57
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: Weird problem with style file
I use --generate-sea=land-tag=natural=background
In my polygons file I have a polygon rule
natural=background [0x010100 resolution 14]
I was not able to solve this issue with background polygon ... strange icons still there.
But I can't to see this elsewhere. So maybe I just must to live with it ![]()
mira
Last edited by miramikes (2013-02-01 23:29:56)
Offline
#23 2013-02-02 13:40:21
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: Weird problem with style file
Try gpsmapedit to see what kind of garmin types those mysterious pois have, you can also see if those pois are in your osm img file, maybe they are not even in your osm file at all.
I really looks this problem is maybe related to garmin base map. I updated garmin software and something changed.
http://www8.garmin.com/products/webupda … nstall.jsp
Some icon disappear some appear. But when I switch to base map there is totally empty place.
Can I try remove base map totally for my unit?
m.
Offline
#24 2013-02-02 13:41:17
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: Weird problem with style file
ligfietser wrote:Try gpsmapedit to see what kind of garmin types those mysterious pois have, you can also see if those pois are in your osm img file, maybe they are not even in your osm file at all.
I really looks this problem is maybe related to garmin base map. I updated garmin software and something changed.
http://www8.garmin.com/products/webupda … nstall.jspSome icon disappear some appear. But when I switch to base map there is totally empty place.
Can I try remove base map totally for my unit?
Or maybe garmin software downgrade would help ... Any idea how to do it?
m.
Last edited by miramikes (2013-02-02 13:43:17)
Offline
#25 2013-02-02 22:23:40
- ligfietser
- Member

- Registered: 2008-10-09
- Posts: 5,353
- Website
Re: Weird problem with style file
Removing the basemap can destroy your unit (at least break the routing) so I wouldn't recommend this.
Previous firmware releases can be downloaded here: http://www.gawisp.com/perry/
Offline