logo separator

[mkgmap-dev] To do: If-Then-Else

From Gerd Petermann GPetermann_muenchen at hotmail.com on Wed Feb 22 06:59:45 GMT 2017

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 <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Andrzej Popowski <popej at poczta.onet.pl>
Gesendet: Samstag, 18. Februar 2017 22:24:51
An: mkgmap-dev at lists.mkgmap.org.uk
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
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list