
I changed the last to this two lines # make sure that mkgmap:road-speed is also set when mkgmap:road-speed-max is set highway=* & mkgmap:road-speed-max=* & mkgmap:road-speed!=* { add mkgmap:road- speed = '${mkgmap:road-speed-max}' } highway=* & mkgmap:road-speed-min=* & mkgmap:road-speed!=* { add mkgmap:road- speed = '${mkgmap:road-speed-min}'; echotags '' } "echotags '' " is for testing if there are matching highways, nothing found in my Bonn Extract Bernd Am Freitag, 14. August 2015, 11:44:45 schrieb Bernd Weigelt:
There is something wrong with 'add mkgmap:road-speed=+0'.
Maybe if i try to '+0', when (mkgmap:road-speed-max=* | mkgmap:road-speed- min=*) = '0'?
Bernd
Am Freitag, 14. August 2015, 09:44:10 schrieb Gerd Petermann:
oops, the proposed rule was missing a plus sign: # make sure that mkgmap:road-speed is also set when mkgmap:road-speed-max (or -min) is set (mkgmap:road-speed-max=* | mkgmap:road-speed-min=*) & mkgmap:road-speed!=* { add mkgmap:road-speed=+0}
Gerd
From: gpetermann_muenchen@hotmail.com To: mkgmap-dev@lists.mkgmap.org.uk Date: Fri, 14 Aug 2015 09:17:09 +0200 Subject: Re: [mkgmap-dev] maxspeed evaluation
Hi,
I think the java code works as documented in the style manual.
A possible solution in the style: Add the following two lines at the end of inc/roadspeed: # make sure that mkgmap:road-speed is also set when mkgmap:road-speed-max is set mkgmap:road-speed-max=* & mkgmap:road-speed!=* { add mkgmap:road-speed=0}
Alternative: Change the java code (and docu) to always evaluate mkgmap:road-speed-max (and -min)
Any comments?
Gerd
From: gpetermann_muenchen@hotmail.com To: mkgmap-dev@lists.mkgmap.org.uk Date: Fri, 14 Aug 2015 08:32:29 +0200 Subject: [mkgmap-dev] maxspeed evaluation
Hi all,
I think the rules in the default style don't work. Example: a way with two tags highway=tertiary and maxspeed=30 will have the same attributes as one with highway=tertiary and maxspeed=70 or one with highway=tertiary and maxspeed!=* although inc/roadspeed sets different values for mkgmap:road-speed-max. Reason: The tag mkgmap:road-speed-max=* is only evaluated by mkgmap when the tag mkgmap:road-speed=*. If mkgmap:road-speed is not set, the value in mkgmap:road-speed-max is completely ignored.
I guess this is not intended?
Gerd
_______________________________________________ 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