Hi,
yes, Steve also noticed similar problems in the branch which also exist in
trunk:
"It should be possible to do this:
boundary=administrative { set mkgmap:if:0001=1 }
mkgmap:if:0001=1 & admin_level<3 [0x1e resolution 12]
mkgmap:if:0001=1 & admin_level<5 [0x1d resolution 19]
mkgmap:if:0001!=1 & admin_level<3 [0x1f resolution 14]
But mkgmap fails here - when boundary=other,amdin_level=2, it should
trigger the third rule but it does not."
It seems that this error exists for a long time and is not easy to solve.
@Steve: Any updates on this? I got the impression that you already have a fix...
Gerd
________________________________________
Von: mkgmap-dev <[email protected]> im Auftrag von Andrzej
Popowski <[email protected]>
Gesendet: Samstag, 18. Februar 2017 22:24:51
An: [email protected]
Betreff: Re: [mkgmap-dev] To do: If-Then-Else
Hi,
I have applied style-option patch v3 to if-then branch. I have noticed
following problems:
- tags created by style-option are treated as empty in conditionals,
- mkgmap gives warning about not used style-option, if it is used in
conditionals only,
- conditionals do not support function is_closed().
Following conditionals are always false:
if (mkgmap:option:aeroway=*) then
...
end
if (aeroway=runway & is_closed()=false) then
...
end
--
Best regards,
Andrzej
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev