[mkgmap-dev] IS_IN tag - value as regular expression or wildcard
From Ticker Berkin rwb-mkgmap at jagit.co.uk on Thu May 21 10:25:51 BST 2020
Hi Gerd This seems like a good idea, I think you should commit it. Ticker On Tue, 2020-05-19 at 08:53 +0000, Joris Bo wrote: > Hello Gerd, > > Your kindness is amazing again! > But unfortunately compiling mkgmap would be to much to learn for me > at the moment.. > I make a comment in my style... If it ends up in a release sometime > I'll change it. > > Kind regards > Joris > > > -----Oorspronkelijk bericht----- > Van: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> Namens Gerd > Petermann > Verzonden: dinsdag 19 mei 2020 10:42 > Aan: Development list for mkgmap <mkgmap-dev at lists.mkgmap.org.uk> > Onderwerp: Re: [mkgmap-dev] IS_IN tag - value as regular expression > or wildcard > > Hi Joris, > > don't know if you compile mkgmap? > The attached small patch allows to use > leisure = pitch & is_in(building, '*', all_in_or_on) = true {echotags > 'yep'} > > Gerd > > ________________________________________ > Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag > von Joris Bo <jorisbo at hotmail.com> > Gesendet: Dienstag, 19. Mai 2020 10:37 > An: Development list for mkgmap > Betreff: Re: [mkgmap-dev] IS_IN tag - value as regular expression or > wildcard > > Hallo Gerd > > Thx for the answer. > For me, the placeholder * would be more then enough. > The is_in() function is a cool feature especially when trying to > unclutter building layers and underground features where the building > tag can have almost every value. > > Kind regards > Joris > > > > > -----Oorspronkelijk bericht----- > Van: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> Namens Gerd > Petermann > Verzonden: dinsdag 19 mei 2020 10:27 > Aan: Development list for mkgmap <mkgmap-dev at lists.mkgmap.org.uk> > Onderwerp: Re: [mkgmap-dev] IS_IN tag - value as regular expression > or wildcard > > Hi Joris, > > > Is there a method for testing against building = * ? > No, the current implementation only matches for the exact value. > > I think I would be quite easy to support '*' as a placeholder but a > lot more work to support regular expressions or style functions. > > Gerd > > ________________________________________ > Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag > von Joris Bo <jorisbo at hotmail.com> > Gesendet: Dienstag, 19. Mai 2020 10:05 > An: Development list for mkgmap > Betreff: [mkgmap-dev] IS_IN tag - value as regular expression or > wildcard > > 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> > > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] IS_IN tag - value as regular expression or wildcard
- Next message: [mkgmap-dev] Commit r4493: fix some sonarlint issues, simplify code (no change in output expected)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list