
hi, in my style, in "relations" I have this code: set route_ref1='$(route_ref1), ${ref|not-contained:, :route_ref1}' | '${ref}'; and I have a way that is member of 3 relations with ref 3, 362 and 363 it seems like the command not-contained process only the first character because the result for route_ref1 is only 3 instead 3, 362, 363 it's a bug of mkmap or it's something desired and known? thanks --enrico -- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html

Hi Enrico, I don't know how to test that. The default style contains set route_ref='$(route_ref);${ref|not-contained:;:route_ref}' | '$(route_ref)' | '${ref}'; Note that there is no blank between not-contained and :route_ref. Maybe that's the reason? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von demon.box <e.rossini73@alice.it> Gesendet: Mittwoch, 13. Dezember 2017 00:31:19 An: mkgmap-dev@lists.mkgmap.org.uk Betreff: [mkgmap-dev] expression not-contained hi, in my style, in "relations" I have this code: set route_ref1='$(route_ref1), ${ref|not-contained:, :route_ref1}' | '${ref}'; and I have a way that is member of 3 relations with ref 3, 362 and 363 it seems like the command not-contained process only the first character because the result for route_ref1 is only 3 instead 3, 362, 363 it's a bug of mkmap or it's something desired and known? thanks --enrico -- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd, I tried this code: set route_ref='$(route_ref);${ref|not-contained:;:route_ref}' | '$(route_ref)' | '${ref}'; without space but unfortunately the result is the same: input -> ref 3 362 363 output -> route_ref 3 why? I don't understand... what can I do? thanks. --enrico -- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html

Hi Enrico, I assume that your rules don't use the value of route_ref for the member of the rel. My understanding of the rule in the default style is that it only changes ways when they have the role "passengers". If that doesn't help please post a link to your style and the osm id of the way you're looking at. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von demon.box <e.rossini73@alice.it> Gesendet: Mittwoch, 13. Dezember 2017 11:41:22 An: mkgmap-dev@lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] expression not-contained Hi Gerd, I tried this code: set route_ref='$(route_ref);${ref|not-contained:;:route_ref}' | '$(route_ref)' | '${ref}'; without space but unfortunately the result is the same: input -> ref 3 362 363 output -> route_ref 3 why? I don't understand... what can I do? thanks. --enrico -- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd, this is the way: https://www.openstreetmap.org/way/189126509 and this is my style for the test: *lines* highway=path {name '${route_ref1|highway-symbol:oval} ${route_name}'} [0x10e15 resolution 24] *relations* type=route & route=hiking{ apply { set route_ref1='$(route_ref1), ${ref|not-contained:, :route_ref1}' | '${ref}'; set route_name='$(route_name), ${name|not-contained:, :route_name}' | '$(route_name)' | '${name}' } } please can you try this code? thanks very much. --enrico -- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html

Hi Enrico, seems to work as you expect. For the way I see mkgmap:label:1=3, 363, 362 Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von demon.box <e.rossini73@alice.it> Gesendet: Mittwoch, 13. Dezember 2017 16:56:09 An: mkgmap-dev@lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] expression not-contained Hi Gerd, this is the way: https://www.openstreetmap.org/way/189126509 and this is my style for the test: *lines* highway=path {name '${route_ref1|highway-symbol:oval} ${route_name}'} [0x10e15 resolution 24] *relations* type=route & route=hiking{ apply { set route_ref1='$(route_ref1), ${ref|not-contained:, :route_ref1}' | '${ref}'; set route_name='$(route_name), ${name|not-contained:, :route_name}' | '$(route_name)' | '${name}' } } please can you try this code? thanks very much. --enrico -- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd, I'm sorry but I see this in MapSource <http://gis.19327.n8.nabble.com/file/t339261/1.jpg> how can you see only ref 3 is displayed.... I don't understand... Thanks. --enrico -- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html

Hi Enrico, I used echotags like this highway=path {name '${route_ref1|highway-symbol:oval} ${route_name}';echotags "2"} [0x10e15 resolution 24] The result: Way 189126509 [highway=path, mkgmap:label:1=3, 363, 362 Sentiero 122ª Brigata Garibaldi, Lumezzane (Pieve) - San Bernardo - Corna di Sonclino, Lumezzane (Pieve) - Grassi - Corna di Sonclino, route_name=Sentiero 122ª Brigata Garibaldi, Lumezzane (Pieve) - San Bernardo - Corna di Sonclino, Lumezzane (Pieve) - Grassi - Corna di Sonclino, route_ref1=3, 363, 362] 2 So, your problem is not related to not-contained. I am not sure what you can use with highway symbols, maybe Garmin doesn't allow lists of values? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von demon.box <e.rossini73@alice.it> Gesendet: Mittwoch, 13. Dezember 2017 19:23:01 An: mkgmap-dev@lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] expression not-contained Hi Gerd, I'm sorry but I see this in MapSource <http://gis.19327.n8.nabble.com/file/t339261/1.jpg> how can you see only ref 3 is displayed.... I don't understand... Thanks. --enrico -- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd, it's very very strange but this is the result without not-contained: <http://gis.19327.n8.nabble.com/file/t339261/2.jpg> *relations* type=route & route=hiking{ apply { set route_ref1='$(route_ref1), ${ref}' | '${ref}'; set route_name='$(route_name), ${name|not-contained:, :route_name}' | '$(route_name)' | '${name}' } } how can you see the label start with 362, 363, 3, 3 so finally I think that the problem is *not-contained* command... but I still don't understand what is it... any ideas? thanks. --enrico Gerd Petermann wrote
Hi Enrico, I used echotags like this highway=path {name '${route_ref1|highway-symbol:oval} ${route_name}';echotags "2"} [0x10e15 resolution 24]
The result: Way 189126509 [highway=path, mkgmap:label:1=3, 363, 362 Sentiero 122ª Brigata Garibaldi, Lumezzane (Pieve) - San Bernardo - Corna di Sonclino, Lumezzane (Pieve) - Grassi - Corna di Sonclino, route_name=Sentiero 122ª Brigata Garibaldi, Lumezzane (Pieve) - San Bernardo - Corna di Sonclino, Lumezzane (Pieve) - Grassi - Corna di Sonclino, route_ref1=3, 363, 362] 2
So, your problem is not related to not-contained. I am not sure what you can use with highway symbols, maybe Garmin doesn't allow lists of values?
Gerd
________________________________________ Von: mkgmap-dev <
mkgmap-dev-bounces@.org
> im Auftrag von demon.box <
e.rossini73@
> Gesendet: Mittwoch, 13. Dezember 2017 19:23:01 An:
mkgmap-dev@.org
Betreff: Re: [mkgmap-dev] expression not-contained
Hi Gerd, I'm sorry but I see this in MapSource
<http://gis.19327.n8.nabble.com/file/t339261/1.jpg>
how can you see only ref 3 is displayed.... I don't understand... Thanks. --enrico
-- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html _______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html

Hi Enrico, it seems that Garmin doesn't like blanks in the highway symbol. Since your rule in relations adds this blank this can be solved easily. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von demon.box <e.rossini73@alice.it> Gesendet: Mittwoch, 13. Dezember 2017 20:07:41 An: mkgmap-dev@lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] expression not-contained Hi Gerd, it's very very strange but this is the result without not-contained: <http://gis.19327.n8.nabble.com/file/t339261/2.jpg> *relations* type=route & route=hiking{ apply { set route_ref1='$(route_ref1), ${ref}' | '${ref}'; set route_name='$(route_name), ${name|not-contained:, :route_name}' | '$(route_name)' | '${name}' } } how can you see the label start with 362, 363, 3, 3 so finally I think that the problem is *not-contained* command... but I still don't understand what is it... any ideas? thanks. --enrico Gerd Petermann wrote
Hi Enrico, I used echotags like this highway=path {name '${route_ref1|highway-symbol:oval} ${route_name}';echotags "2"} [0x10e15 resolution 24]
The result: Way 189126509 [highway=path, mkgmap:label:1=3, 363, 362 Sentiero 122ª Brigata Garibaldi, Lumezzane (Pieve) - San Bernardo - Corna di Sonclino, Lumezzane (Pieve) - Grassi - Corna di Sonclino, route_name=Sentiero 122ª Brigata Garibaldi, Lumezzane (Pieve) - San Bernardo - Corna di Sonclino, Lumezzane (Pieve) - Grassi - Corna di Sonclino, route_ref1=3, 363, 362] 2
So, your problem is not related to not-contained. I am not sure what you can use with highway symbols, maybe Garmin doesn't allow lists of values?
Gerd
________________________________________ Von: mkgmap-dev <
mkgmap-dev-bounces@.org
> im Auftrag von demon.box <
e.rossini73@
> Gesendet: Mittwoch, 13. Dezember 2017 19:23:01 An:
mkgmap-dev@.org
Betreff: Re: [mkgmap-dev] expression not-contained
Hi Gerd, I'm sorry but I see this in MapSource
<http://gis.19327.n8.nabble.com/file/t339261/1.jpg>
how can you see only ref 3 is displayed.... I don't understand... Thanks. --enrico
-- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html _______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd, finally I understand! The problem it's not the blank but my code: This don't work: set route_ref1='$(route_ref1), ${ref|not-contained:, :route_ref1}' | '${ref}'; This work perfectly (also with blank): set route_ref1='$(route_ref1), ${ref|not-contained:, :route_ref1}' | '$(route_ref1)' | '${ref}'; Thanks very, very, very much ;-) --enrico -- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html

Hi Enrico, do you use your "set" statement inside "apply {}" block? It won't work correctly without "apply" and mkgmap gives no warning about using "$()" without it. -- Best regards, Andrzej
participants (4)
-
"Maxim Düster"
-
Andrzej Popowski
-
demon.box
-
Gerd Petermann