<br><br><div class="gmail_quote">2009/7/7 Torsten Leistikow <span dir="ltr"><<a href="mailto:de_muur@gmx.de">de_muur@gmx.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Steve Ratcliffe schrieb:<br>
<div class="im">>> highway=* {set tag_a=yes}<br>
>> tag_a!=yes {set tag_b=yes}<br>
>> tag_a=yes [0x01 resolution 20]<br>
>> tag_b=yes [0x02 resolution 20]<br>
>> highway=* [0x03 resolution 20]<br>
>><br>
>> Will all highways be converted to 0x01, 0x02 or 0x03?<br>
><br>
> My guess was 0x01. But it turns out that I was wrong :) Actually<br>
> it is not a valid style because you can't have tag_a!=yes all by itself.<br>
<br>
</div>In OSM you can have any tags you like, so there is no reason, why such a<br>
style would be invalid (e.g. you could use such a scheme, to set all<br>
highway=footway to highway=path and foot=designated).<br>
<br>
And I think, if I would change the second line to<br>
<br>
highway=* tag_a!=yes {set tag_b=yes}<br>
<br>
it wouldn't change anything, or would it?<br>
<br>
I am still trying to figure out, how the rules are working at the<br>
moment. So what is the result of the above? (I haven't tried it myself.)<br>
Which lines are processed in which are left out?<br>
<br>
What would happen, if the second lien would be changed to the following:<br>
tag_a!=yes {set tag_a=no; set tag_b=yes}<br>
<div class="im"><br>
> It seems that the action rules are being used a lot more than I thought<br>
> going some way beyond what they were designed for. We need to look at what<br>
> the actions are being used for. I get the impression that a lot of it is<br>
> to normalize inconsistent tagging, so perhaps we need a separate stage<br>
> where that is done explicitly.<br>
<br>
</div>I don't know, what is possible with the action rules right now, since I<br>
am still trying to figure out, how they are working.</blockquote><div>you can have tags only, but they dont create a copy of the map. whereas lines seem to be taken for polygons if not asked for in the style-file (i.e. if you set have_riverbank=yes to display water in the polygon file and any simple line is joined to become a polygon, often with the generated water layed over large areas, lines will only be drawn if they are somehow attached to highway=* & asdf<br>
<br>also when creating style-rules the order is important. highway=* has to be first, or else some rules will not work so while asdf & highway=* [0x01 resolution 24] does not work, highway=* & asdf [0x01 resolution 24] does work. might be that this problem only appears on more complex rules (I have a ruleset of around 10.000 checks running, and needed to tweek the position of highway=* quite a lot until it actually showed up. I consider the style-rules to be quite buggy therefore.<br>
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Right now I am trying to use the action rules, to generate a bicycle<br>
routing map, which uses the Garmin-Navi in car-mode, because of the<br>
better routing algorithms. Therefor I am tweeking the road classes and<br>
the access restrictions.<br>
So basically I am trying to use the action rules as a preprocessor for<br>
the OSM data.<br>
<br>
Oh, and by the way: Would it be possible, to add support for a "txt"<br>
extension for the style files? It is quite anoying on a windows system,<br>
that you always have to choose manually the application, when you open a<br>
style file.</blockquote><div>You can associate any program to open up files without extensions. google it. .txt would be more beginner friendly though. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Gruss<br>
<font color="#888888">Torsten<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
</div></div></blockquote></div><br>