Re: [mkgmap-dev] Style rules and 'generated' tags

2009-07-07 Thread Torsten Leistikow
Steve Ratcliffe schrieb: > You cannot set the same tag that you are matching. (Currently there is > a bug and it will hang, but the intended result would be just that it is > ignored > as it is too late.) > > All actions will be run before the final matching rule is selected and the > action rul

Re: [mkgmap-dev] Style rules and 'generated' tags

2009-07-07 Thread Steve Ratcliffe
Hi > http://wiki.openstreetmap.org/wiki/OSM_Map_On_Garmin/Cycle_map > http://svn.openstreetmap.org/applications/utils/export/garmincyclemap/network/ > http://www.openstreetmap.org/user/Richard/diary/6949 Looks great! Is there anything that you would really like it to do that it doesn't yet? ..S

Re: [mkgmap-dev] Style rules and 'generated' tags

2009-07-07 Thread Steve Ratcliffe
Hi > And I think, if I would change the second line to > > highway=* tag_a!=yes {set tag_b=yes} adding in the missing '&' sign: highway=* & tag_a!=yes {set tag_b=yes} Then that is allowed, and the result would still be that all highways were 0x01. > it wouldn't change anything, or would it?

Re: [mkgmap-dev] Style rules and 'generated' tags

2009-07-07 Thread Felix Hartmann
2009/7/7 Torsten Leistikow > Steve Ratcliffe schrieb: > >> highway=* {set tag_a=yes} > >> tag_a!=yes {set tag_b=yes} > >> tag_a=yes [0x01 resolution 20] > >> tag_b=yes [0x02 resolution 20] > >> highway=* [0x03 resolution 20] > >> > >> Will all highways be converted to 0x01, 0x02 or 0x03? > > > >

Re: [mkgmap-dev] Style rules and 'generated' tags

2009-07-07 Thread Torsten Leistikow
Steve Ratcliffe schrieb: >> highway=* {set tag_a=yes} >> tag_a!=yes {set tag_b=yes} >> tag_a=yes [0x01 resolution 20] >> tag_b=yes [0x02 resolution 20] >> highway=* [0x03 resolution 20] >> >> Will all highways be converted to 0x01, 0x02 or 0x03? > > My guess was 0x01. But it turns out that I was

Re: [mkgmap-dev] Style rules and 'generated' tags

2009-07-07 Thread Richard Fairhurst
Steve Ratcliffe wrote: It seems that the action rules are being used a lot more than I thought going some way beyond what they were designed for. We need to look at what the actions are being used for. If it helps, I finished (\o/) the map I was working on, and have uploaded both it and the

Re: [mkgmap-dev] Style rules and 'generated' tags

2009-07-07 Thread Steve Ratcliffe
Hi > So what will happen with this example. > > highway=* {set tag_a=yes} > tag_a!=yes {set tag_b=yes} > tag_a=yes [0x01 resolution 20] > tag_b=yes [0x02 resolution 20] > highway=* [0x03 resolution 20] > > Will all highways be converted to 0x01, 0x02 or 0x03? My guess was 0x01. But it turns ou

Re: [mkgmap-dev] Style rules and 'generated' tags

2009-07-06 Thread Torsten Leistikow
Steve Ratcliffe schrieb: > However what currently happens is that for each node/way/relation I > go through the tags exactly once and find the earliest rule that > matches. Rules with actions have the actions run when seen. So in > this case I believe that ncn is already set and has been processed

Re: [mkgmap-dev] Style rules and 'generated' tags

2009-07-02 Thread Richard Fairhurst
Steve Ratcliffe wrote: There is nothing wrong with this and I would like it to work. However what currently happens is that for each node/way/relation I go through the tags exactly once and find the earliest rule that matches. Rules with actions have the actions run when seen. So in this case

Re: [mkgmap-dev] Style rules and 'generated' tags

2009-07-02 Thread Steve Ratcliffe
Hi Richard > The rules I’m using (in ‘lines’) are this: > > ncn_ref=* { set ncn=yes; echo 'Converting from ${ncn_ref}'; } > ( highway=bridleway | highway=byway | highway=cycleway | > highway=track | highway=footway) & ( ncn=yes | rcn=yes ) > { set offroad='yes'; echo

[mkgmap-dev] Style rules and 'generated' tags

2009-07-02 Thread Richard Fairhurst
Hi all, I’ve been trying to work on some style rule files and am running into a few problems. The rules I’m using (in ‘lines’) are this: ncn_ref=* { set ncn=yes; echo 'Converting from ${ncn_ref}'; } ( highway=bridleway | highway=byway | highway=cycleway | highway=