[mkgmap-dev] Help from the style file gurus
From Carlos Dávila cdavilam at jemila.jazztel.es on Wed Jan 20 15:37:57 GMT 2010
Charlie Ferrero escribió: > Felix Hartmann wrote: > >> On 03.01.2010 11:20, Charlie Ferrero wrote: >> >>> Felix Hartmann wrote: >>> >>>> On 02.01.2010 15:44, Charlie Ferrero wrote: >>>> >>>>> Bump...has no-one else managed to solve how to represent one-way >>>>> bridges? >>>>> >>>>> Charlie Ferrero wrote: >>>>> >>>>>> Hello list, >>>>>> >>>>>> Question #1 >>>>>> =========== >>>>>> I am using the overlays style file in combination with a TYP file to >>>>>> define custom styles for one-way streets (overlaid blue arrows in the >>>>>> direction of the one-way, type 0x10), and for bridges (two parallel >>>>>> lines outside the road, type 0x12). This all works fine. Where I'm >>>>>> stuck is when I have a one-way street that is also a bridge. I had >>>>>> assumed that the stop/continue system would help me here, but sadly it >>>>>> doesn't work as I expected. >>>>>> >>>>>> The following are my style rules for trunk roads: >>>>>> >>>>>> #lines file excerpt: >>>>>> highway=trunk& (bridge=yes | bridge=true) [0x111 resolution 16 >>>>>> continue] >>>>>> highway=trunk& oneway!=* [0x02 resolution 16 stop] >>>>>> highway=trunk& (oneway=yes | oneway=true) [0x123 resolution 16 stop] >>>>>> >>>>>> #overlays file excerpt: >>>>>> 0x111: 0x02, 0x12 >>>>>> 0x123: 0x02, 0x10 >>>>>> >>>>>> >>>> This code is rubbish (or 10x more complicated then needed). >>>> >>>> Use instead: >>>> >>>> highway=trunk& (bridge=yes | bridge=true) [0x12 resolution 16 continue] >>>> highway=trunk& (oneway=yes | oneway=true) [0x10 resolution 16 continue] >>>> highway=trunk [0x02 resolution 16] >>>> >>>> >>>> >>> Thanks for the suggestion. Unfortunately it doesn't work properly >>> (see screenshots) but it has helped me figure out what's going wrong: >>> even though the continue keyword is there, the rule matching seems to >>> stop at the first match. >>> >>> I am using mkgmap r1455 - is there some command switch that I've >>> missed that I must use to get continue to work properly? >>> >>> >> ups, switch it around. make bridge=yes & highway=trunk; oneway=yes & >> highway=trunk ..... >> > > Thank you Felix, this works! > > I've also been trying to get bridges drawn on my maps, but they are not working in MapSource (look fine in gps). I have used both overlays and continue approaches, but none of them gives good result in MapSource (6.13.7). I've been comparing my maps with openmtb-spain map (thines.typ) from Felix, which shows nice bridges in MapSource and I have almost the same definition for bridges on typ file, i.e. color mode 6-1 common color (line only or transparent bitmap), rendering of slanted lines skewing, extended labels, no custom colors, no label (invisible). The only differences are bitmap height and line color, which I think should not have any effect on the matter. Also Charlie's TYP file has similar bridges definition. For the overlays, lines styles file used has the following rules: (bridge=yes | bridge=true) & highway=motorway [0x121 road_class=4 road_speed=6 resolution 12] (bridge=yes | bridge=true) & highway=trunk [0x122 road_class=3 road_speed=5 resolution 16] (bridge=yes | bridge=true) & highway=primary [0x123 road_class=3 road_speed=5 resolution 18] (bridge=yes | bridge=true) & highway=secondary [0x124 road_class=2 road_speed=4 resolution 20] (bridge=yes | bridge=true) & highway=tertiary [0x125 road_class=1 road_speed=3 resolution 20] and the overlays: 0x121: 0x01, 0x2c 0x122: 0x02, 0x2d 0x123: 0x03, 0x2d 0x124: 0x04, 0x2d 0x125: 0x05, 0x2e For the "continue" approach I've used these rules: (bridge=yes | bridge=true) & highway=motorway [0x2c resolution 12 continue] highway=motorway & (maxspeed>129 | maxspeed=none) [0x01 road_class=4 road_speed=7 resolution 12] highway=motorway & maxspeed>100 [0x01 road_class=4 road_speed=6 resolution 12] highway=motorway & maxspeed>80 [0x01 road_class=4 road_speed=5 resolution 12] highway=motorway & maxspeed>60 [0x01 road_class=3 road_speed=4 resolution 12] highway=motorway & maxspeed<61 [0x01 road_class=3 road_speed=3 resolution 12] highway=motorway [0x01 road_class=4 road_speed=6 resolution 12] Have you any clue how to get my bridges drawn in MapSource? What am I doing wrong? Regards, Carlos
- Previous message: [mkgmap-dev] Help from the style file gurus
- Next message: [mkgmap-dev] Help from the style file gurus
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list