
Hi! I have another problem with mkgmap: When rendering primary roads this way: highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 16 ] everything works great But when I render roads this way (to have different names on different levels) highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 16-16 continue] highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 18-18 continue] highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 20-20 continue] highway=primary {name '${name}' | '${ref}'} [0x03 road_class=3 road_speed=4 resolution 22-22 continue] highway=primary {name '${name}' | '${ref}'} [0x03 road_class=3 road_speed=4 resolution 24-24] Routing on such map doesn't work - Garmin (MapSource or hardware devices) don't see primary roads when trying to calculate way. Instead of proper route you get "straight line" to the nearest secondary road and there it routes you (still not using any primary road). This problem is best visualised using MapSource's "route tool". My map levels are: levels = 0:24, 1:22, 2:20, 3:18, 4:16 When you try to search for a name of such primary road in index - MapSource crashes. Is is problem with mkgmap or I just write my rendering rules wrong? I just want to hide primary roads names on lower zoom levels. best regards Michal Rogala

routing is only on resolution 24. And don't put 24-24 (just in case). ( in theory routing should also work in resolution 23, if there is no resolution 24 in the map, that is however not working with mkgmap yet). On 07.06.2012 15:31, Michał Rogala wrote:
Hi!
I have another problem with mkgmap:
When rendering primary roads this way:
highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 16 ]
everything works great
But when I render roads this way (to have different names on different levels)
highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 16-16 continue] highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 18-18 continue] highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 20-20 continue] highway=primary {name '${name}' | '${ref}'} [0x03 road_class=3 road_speed=4 resolution 22-22 continue] highway=primary {name '${name}' | '${ref}'} [0x03 road_class=3 road_speed=4 resolution 24-24]
Routing on such map doesn't work - Garmin (MapSource or hardware devices) don't see primary roads when trying to calculate way. Instead of proper route you get "straight line" to the nearest secondary road and there it routes you (still not using any primary road). This problem is best visualised using MapSource's "route tool".
My map levels are:
levels = 0:24, 1:22, 2:20, 3:18, 4:16
When you try to search for a name of such primary road in index - MapSource crashes.
Is is problem with mkgmap or I just write my rendering rules wrong? I just want to hide primary roads names on lower zoom levels.
best regards
Michal Rogala _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

unfortunately, even: highway=primary { name '${ref}' } [0x03 road_class=3 road_speed=4 resolution 20-16 continue] highway=primary { name '${name}' } [0x03 road_class=3 road_speed=4 resolution 22] doesn't work ;( 2012/6/7 Felix Hartmann <extremecarver@gmail.com>:
routing is only on resolution 24. And don't put 24-24 (just in case). ( in theory routing should also work in resolution 23, if there is no resolution 24 in the map, that is however not working with mkgmap yet).
On 07.06.2012 15:31, Michał Rogala wrote:
Hi!
I have another problem with mkgmap:
When rendering primary roads this way:
highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 16 ]
everything works great
But when I render roads this way (to have different names on different levels)
highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 16-16 continue] highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 18-18 continue] highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 20-20 continue] highway=primary {name '${name}' | '${ref}'} [0x03 road_class=3 road_speed=4 resolution 22-22 continue] highway=primary {name '${name}' | '${ref}'} [0x03 road_class=3 road_speed=4 resolution 24-24]
Routing on such map doesn't work - Garmin (MapSource or hardware devices) don't see primary roads when trying to calculate way. Instead of proper route you get "straight line" to the nearest secondary road and there it routes you (still not using any primary road). This problem is best visualised using MapSource's "route tool".
My map levels are:
levels = 0:24, 1:22, 2:20, 3:18, 4:16
When you try to search for a name of such primary road in index - MapSource crashes.
Is is problem with mkgmap or I just write my rendering rules wrong? I just want to hide primary roads names on lower zoom levels.
best regards
Michal Rogala _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

On Thu, Jun 07, Michał Rogala wrote:
unfortunately, even:
highway=primary { name '${ref}' } [0x03 road_class=3 road_speed=4 resolution 20-16 continue]
highway=primary { name '${name}' } [0x03 road_class=3 road_speed=4 resolution 22]
doesn't work ;(
That's what I'm using: highway=primary [0x10f02 level 4-5 continue] highway=primary [0x02 road_class=3 road_speed=4 level 3] levels = 0:24, 1:22, 2:21, 3:20, 4:18, 5:17, 6:16 Working fine for me. But I don't change the name in different levels. Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)

2012/6/7 Thorsten Kukuk <kukuk@suse.de>:
That's what I'm using: highway=primary [0x10f02 level 4-5 continue] highway=primary [0x02 road_class=3 road_speed=4 level 3]
levels = 0:24, 1:22, 2:21, 3:20, 4:18, 5:17, 6:16
Working fine for me. But I don't change the name in different levels.
Maybe the issue here is that I don't change road type on different levels - I'll try. Thanks for the hint :)

On 06/07/2012 06:31 PM, Michał Rogala wrote:
2012/6/7 Thorsten Kukuk<kukuk@suse.de>:
That's what I'm using: highway=primary [0x10f02 level 4-5 continue] highway=primary [0x02 road_class=3 road_speed=4 level 3]
levels = 0:24, 1:22, 2:21, 3:20, 4:18, 5:17, 6:16
Working fine for me. But I don't change the name in different levels.
Maybe the issue here is that I don't change road type on different levels - I'll try. Thanks for the hint :)
You should also remove the road_class and road_speed from all but the 'real' road. ..Steve

Hi all. On Thu, June 7, 2012 15:31, Micha� Rogala wrote:
But when I render roads this way (to have different names on different levels)
highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 16-16 continue] highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 18-18 continue] highway=primary {name '${ref}'} [0x03 road_class=3 road_speed=4 resolution 20-20 continue] highway=primary {name '${name}' | '${ref}'} [0x03 road_class=3 road_speed=4 resolution 22-22 continue] highway=primary {name '${name}' | '${ref}'} [0x03 road_class=3 road_speed=4 resolution 24-24]
mkgmap contains code that tries to merge road segments by their name. So I guess that the duplicate names will most probably confuse it (see also method sortRoads in uk.me.parabola.imgfmt.app.net.NETFile). Regards, Michael -- Michael Günnewig MichaelGuennewig@gmx.de Germany GPG/PGP: 1024/4FBF2650 9E1D E0F4 304A E4B8 D224 059E F3F1 67D2 4FBF 2650
participants (5)
-
"Michael Günnewig"
-
Felix Hartmann
-
Michał Rogala
-
Steve Ratcliffe
-
Thorsten Kukuk