<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi WanMil,<br><br>okay, now I got it. <br>Would it be possible to print a warning when a <br>style uses something like<br>highway=secondary {set mkgmap:road-speed=3}<br>highway=* & surface=gravel {set mkgmap:road-speed=-1}<br>highway=* & tunnel=yes {set mkgmap:road-speed=-1}<br><br>For a way with highway=secondary,surface=gravel,tunnel=yes the<br>resulting speed would be 2 (3-1), but the user probably expects 1 (3-1-1).<br><br>Gerd<br><br><div>> Date: Sat, 28 Dec 2013 10:52:54 +0100<br>> From: wmgcnfg@web.de<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] why do we have mkgmap:road-speed-class ?<br>> <br>> lines:<br>> include 'inc/roadspeed';<br>> highway=* & lanes > 2 { set mkgmap:road-speed=+1 }<br>> <br>> The roadspeed include sets the road speed. After that you need a 2nd tag <br>> to modify the road speed.<br>> <br>> WanMil<br>> <br>> > Hi WanMil,<br>> ><br>> > I still don't understand. Please give an example where<br>> > mkgmap:road-speed-class has to be used because mkgmap:road-speed<br>> > will not work.<br>> ><br>> > Gerd<br>> ><br>> ><br>> > > Date: Sat, 28 Dec 2013 09:20:20 +0100<br>> > > From: wmgcnfg@web.de<br>> > > To: mkgmap-dev@lists.mkgmap.org.uk<br>> > > Subject: Re: [mkgmap-dev] why do we have mkgmap:road-speed-class ?<br>> > ><br>> > > > Hi WanMil,<br>> > > ><br>> > > > I fear I don't understand the meaning of this new tag.<br>> > > > Docu says:<br>> > > > "A value between 0 and 7. Overrides the road_speed definition in the<br>> > > > element type definition if this tag is set."<br>> > > ><br>> > > > We have mkgmap:road-speed which allows to increment, decrement or<br>> > override<br>> > > > the road speed value in the element type definition.<br>> > > > Why did you introduce this new tag?<br>> > ><br>> > > mkgmap:road-speed already was already used so I could not just change<br>> > > its meaning.<br>> > > mkgmap:road-speed-class defines the speed classification whereas<br>> > > mkgmap:road-speed can define or modify a speed classification. But how<br>> > > do you want to modify an already set classification? That's not possible<br>> > > in the style because you don't have arithmetic expressions.<br>> > > That results in having mkgmap:road-speed-class which defines speed class<br>> > > (or better overrides the class defined in the GType) and a modifier<br>> > > mkgmap:road-speed. I propose to use mkgmap:road-speed as modifier only<br>> > > (prefixed with +-) but I could not remove the usage without prefixed +-<br>> > > because that would break existing style sheets.<br>> > ><br>> > > WanMil<br>> > ><br>> > > ><br>> > > > Gerd<br>> > > ><br>> > ><br>> > > _______________________________________________<br>> > > mkgmap-dev mailing list<br>> > > mkgmap-dev@lists.mkgmap.org.uk<br>> > > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br>> ><br>> ><br>> > _______________________________________________<br>> > mkgmap-dev mailing list<br>> > mkgmap-dev@lists.mkgmap.org.uk<br>> > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br>> ><br>> <br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>