[mkgmap-dev] Small bug in mkgmap style handling on action rules
From Felix Hartmann extremecarver at googlemail.com on Thu Feb 4 16:32:37 GMT 2010
Hi, I just discovered a bug (this is happening on both trunk as well as style-speed). This rule is applied twice if both mtb:scale and mtb:scale:uphill are present: ( mtb:scale=* | mtb:scale:uphill=* ) { set name='${name} M${mtb:scale}${mtb:scale:uphill}' | '${name} M${mtb:scale}.' | '${name} Mx${mtb:scale:uphill}' | 'M${mtb:scale}${mtb:scale:uphill}' | 'M${mtb:scale}.' | 'Mx${mtb:scale:uphill}' } One can code around it like this which gives the result that would be expected from the single line above. I think this bug only affects action rules, not normal rules. mtb:scale=* & mtb:scale:uphill=* & extremecarvernameset!=* { set name='${name} M${mtb:scale}${mtb:scale:uphill}' | '${name} M${mtb:scale}.' | '${name} Mx${mtb:scale:uphill}' | 'M${mtb:scale}${mtb:scale:uphill}'; set extremecarvernameset=yes } mtb:scale=* & extremecarvernameset!=* { set name='${name} M${mtb:scale}.' | 'M${mtb:scale}.'; set extremecarvernameset=yes } mtb:scale:uphill=* & extremecarvernameset!=* { set name='${name} Mx${mtb:scale:uphill}' | '${name} Mx${mtb:scale:uphill}'; set extremecarvernameset=yes } This would not be noticed when action rules are used to work on access tags (acces tag set twice to the same value), but it can be confusing for setting the name. BTW is the --name-tag-list option still usefull. I think it can be better done directly from the style-file (or is it faster to do via name-tag-list??). Actually it would be great if for international names, we could have at least a second choice in the search index. Also the --no-sorted-roads option does not bring any speed improvements anymore. I think it can be removed.
- Previous message: [mkgmap-dev] Style speed branch on Austria
- Next message: [mkgmap-dev] Small bug in mkgmap style handling on action rules
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list