logo separator

[mkgmap-dev] IS_IN tag - value as regular expression or wildcard

From Joris Bo jorisbo at hotmail.com on Tue May 19 09:05:46 BST 2020

Hello

I try to use the IS_IN function with regular expression or wildcard, but I get style-errors or false.
When testing against the exact value it works perfectly.
Is there a method for testing against building = *   instead of building = yes ?

On the same object I have the following results
#leisure = pitch & is_in(building, *, all_in_or_on) = true                         {set debug0 = true}                   Style conversion error
leisure = pitch & is_in(building, '.*', all_in_or_on) = true                         {set debug1 = true}                   false
leisure = pitch & is_in(building, '\*', all_in_or_on) = true                         {set debug2 = true}                   false
leisure = pitch & is_in(building, '*', all_in_or_on) = true                        {set debug3 = true}                   false
leisure = pitch & is_in(building, '(.*)', all_in_or_on) = true      {set debug4 = true}                   false
leisure = pitch & is_in(building, '(\*)', all_in_or_on) = true      {set debug5 = true}                   false
leisure = pitch & is_in(building, '(*)', all_in_or_on) = true                  {set debug6 = true}                   false
leisure = pitch & is_in(building, yes, all_in_or_on) = true      {set debug7 = true}                   true

mkgmap:cache_is_in_POLYLINE_building_(*)_all_in_or_on=false
mkgmap:cache_is_in_POLYLINE_building_(.*)_all_in_or_on=false
mkgmap:cache_is_in_POLYLINE_building_(\*)_all_in_or_on=false
mkgmap:cache_is_in_POLYLINE_building_*_all_in_or_on=false
mkgmap:cache_is_in_POLYLINE_building_.*_all_in_or_on=false
mkgmap:cache_is_in_POLYLINE_building_\*_all_in_or_on=false
mkgmap:cache_is_in_POLYLINE_building_yes_all_in_or_on=true


Many thx in advance,
Kind Regards
Joris
jorisbo at hotmail.com<mailto:jorisbo at hotmail.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20200519/fd74bac9/attachment.html>


More information about the mkgmap-dev mailing list