logo separator

[mkgmap-dev] Some questions regarding rule expressions

From littlehelper berny.moser at gmx.at on Sun Mar 24 14:12:27 GMT 2013

Hi,

I have the following questions regarding the rule expressions:

1. Is the expression key=* also matching with tags created in action blocks
of previous rules?

Example (nonsense, but representative):
  highway=residential { add test=yes; }
  test=*                   [0x06 resolution 22]    <-- not working
  test~'.*'                [0x06 resolution 22]    <-- not working
  test=yes                [0x06 resolution 22]    <-- working
  test!=no                 [0x06 resolution 22]    <-- not working
  highway=* & test=* [0x06 resolution 22]    <-- working

So, in general, the expression key=* is working for key highway and others
keys/tags defined in the input osm file. The expression is also working as
expected within the combination of highway=* and test=*, only highways with
a tag test=* are matching. 
But if test=* is the only expression in the rule, the tag which is
introduced some rules before seems to be ignored. This happens also if there
is only the regex expression, which should work since r2297: Allow a style
rule to consist of just a regular expression.
Is this considered as expected or is this a bug? If this is correct
behaviour, please add a hint to the style-manual.

2. Sometimes i have observed that if the expression key!=value is the only
expression in a rule, the rule seems to be ignored by mkgmap (see example
above). If i remember correctly, there were some discussions about fixing
that behaviour.
Is this still relevant/in progress? Please, add any hint to the
style-manual.

3. Shouldn't style-manual be updated like discussed in
http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2010q1/007957.html ?

Thank you.
Greetings



--
View this message in context: http://gis.19327.n5.nabble.com/Some-questions-regarding-rule-expressions-tp5754492.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.


More information about the mkgmap-dev mailing list