Hi Jan

I'm slightly confused as to what you are trying to do here when you say
it works for nodes but not polygons.

After you've output a POI from the first rule what are you trying to
do?

Ticker

On Sun, 2021-02-21 at 10:42 +0100, jan meisters wrote:
> Hi Gerd,
> 
> my first impression didn´t get trough further test.
> 
> This works for nodes, but not for polygons:
>       leisure=stadium & sport=swimming [0x2d09 resolution 24]
>       sport=swimming & is_in(leisure,stadium,in_or_on)=true &
> is_in(sport,swimming,in_or_on)=true {delete sport}
> 
> It matches it´s own swimming tag as well, not only when stadium is
> given.
> Tried various spellings/brackets, but I can´t get it to work for
> stadium and swimming as a combination only.
> I guess we don´t have a syntax for this?
> 
> Attached a small example.
> 
> Jan
> 
> 
> > Am 16.02.2021 um 18:28 schrieb jan meisters <jan_...@gmx.net>:
> > 
> > Hi Gerd,
> > 
> > so easy - that works!
> > Thanks for helping me out
> > Jan
> > 
> > > Am 16.02.2021 um 17:44 schrieb Gerd Petermann <
> > > gpetermann_muenc...@hotmail.com>:
> > > 
> > > Hi Jan,
> > > 
> > > is_in(leisure,park,...) & is_in(sport,swimming,...)
> > > should work.
> > > 
> > > Gerd
> > > 
> > > ________________________________________
> > > Von: mkgmap-dev <mkgmap-dev-boun...@lists.mkgmap.org.uk> im
> > > Auftrag von jan meisters <jan_...@gmx.net>
> > > Gesendet: Dienstag, 16. Februar 2021 17:31
> > > An: Development list for mkgmap
> > > Betreff: Re: [mkgmap-dev] is_in with own Tags?
> > > 
> > > Hi Joris,
> > > 
> > > thanks for stating - I guessed something like that.
> > > 
> > > What I want is to is_in for a tag-combination, e.g. leisure=park
> > > & sport=swimming.
> > > I have a poi-rule for park&swimming first and further want to
> > > exclude swimmings inside matching polygons.
> > > 
> > > Do I have another option to define the combination so that it can
> > > be seen by is_in?
> > > 
> > > Thanks
> > > Jan
> > > 
> > > > Am 16.02.2021 um 14:48 schrieb Joris Bo <jori...@hotmail.com>:
> > > > 
> > > > Hi Jan
> > > > 
> > > > As far as i understood this function really checks the polygons
> > > > around the poi to check if the poi-coordinates are located
> > > > within the polygon specified.
> > > > It can not check variables because they don't have an outline.
> > > > 
> > > > 
> > > > 
> > > > Met vriendelijke groeten,
> > > > 
> > > > Joris Bo
> > > > jori...@hotmail.com
> > > > 
> > > > -----Oorspronkelijk bericht-----
> > > > Van: mkgmap-dev <mkgmap-dev-boun...@lists.mkgmap.org.uk> Namens
> > > > jan meisters
> > > > Verzonden: dinsdag 16 februari 2021 14:12
> > > > Aan: Development list for mkgmap <
> > > > mkgmap-dev@lists.mkgmap.org.uk>
> > > > Onderwerp: [mkgmap-dev] is_in with own Tags?
> > > > 
> > > > Hi all,
> > > > 
> > > > I try to use is_in to fetch pois inside own invented tags,
> > > > e.g.:
> > > > 
> > > >     leisure=park {add processed=yes} [0x2c06 resolution 24
> > > > continue with_actions]
> > > >     leisure=swimming_pool & is_in(processed,yes,in_or_on)=true
> > > > {delete leisure}
> > > > 
> > > > This fails, however „is_in(leisure,park,in_or_on)=true“ works
> > > > in the example.
> > > > Could someone explain where I´m wrong?
> > > > 
> > > > Thanks
> > > > Jan
> > > > _______________________________________________
> > > > mkgmap-dev mailing list
> > > > mkgmap-dev@lists.mkgmap.org.uk
> > > > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> > > > _______________________________________________
> > > > mkgmap-dev mailing list
> > > > mkgmap-dev@lists.mkgmap.org.uk
> > > > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> > > 
> > > _______________________________________________
> > > mkgmap-dev mailing list
> > > mkgmap-dev@lists.mkgmap.org.uk
> > > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> > > _______________________________________________
> > > mkgmap-dev mailing list
> > > mkgmap-dev@lists.mkgmap.org.uk
> > > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> > 
> > _______________________________________________
> > mkgmap-dev mailing list
> > mkgmap-dev@lists.mkgmap.org.uk
> > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> 
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to