Re: [mkgmap-dev] maxspeed evaluation

2015-08-15 Thread Gerd Petermann
Subject: Re: [mkgmap-dev] maxspeed evaluation > > Hi Bernd, > > > Maybe if i try to '+0' > > My guess is that simple +0 is a number while '+0' is a string, and > probably mkgmap:road-speed expect a string. So I suggest to try: > &g

Re: [mkgmap-dev] maxspeed evaluation

2015-08-14 Thread Andrzej Popowski
Hi Bernd, > Maybe if i try to '+0' My guess is that simple +0 is a number while '+0' is a string, and probably mkgmap:road-speed expect a string. So I suggest to try: mkgmap:road-speed='+0' -- Best regards, Andrzej ___ mkgmap-dev mailing list mkgm

Re: [mkgmap-dev] maxspeed evaluation

2015-08-14 Thread Bernd Weigelt
eed-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:

Re: [mkgmap-dev] maxspeed evaluation

2015-08-14 Thread GerdP
Hi Andrzej, I agree that the relation between tag mkgmap:road-speed='-0' and mkgmap:road-speed-max is hard to understand. I see no good reason for keeping the java code. Gerd popej wrote > Hi Gerd, > > > I think the advantage of my version is that it doesn't override > > an existing mkgmap:

Re: [mkgmap-dev] maxspeed evaluation

2015-08-14 Thread Andrzej Popowski
Hi Gerd, > I think the advantage of my version is that it doesn't override > an existing mkgmap:road-speed=* tag. Yes, I have noticed. Maybe that kind of action would be simpler: ... { add mkgmap:road-speed='-0'; set mkgmap:road-speed-max = 2 } I think that making mkgmap:road-speed-max independ

Re: [mkgmap-dev] maxspeed evaluation

2015-08-14 Thread Bernd Weigelt
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 fo

Re: [mkgmap-dev] maxspeed evaluation

2015-08-14 Thread Bernd Weigelt
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: &

Re: [mkgmap-dev] maxspeed evaluation

2015-08-14 Thread Gerd Petermann
2015 10:30:25 +0200 > Subject: Re: [mkgmap-dev] maxspeed evaluation > > Hi Gerd, > > > 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-m

Re: [mkgmap-dev] maxspeed evaluation

2015-08-14 Thread Andrzej Popowski
Hi Gerd, > 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. My early proposition for limiting speed looked like this: ... { set mkgmap:road-speed='-0'; se

Re: [mkgmap-dev] maxspeed evaluation

2015-08-14 Thread Gerd Petermann
m 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

Re: [mkgmap-dev] maxspeed evaluation

2015-08-14 Thread Gerd Petermann
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_muenc...@hotmail.com To: mkgmap-dev@lists.mkgmap.org.uk Date: Fri, 14 Aug 2015 08:32:29 +0200 Subject: [mkgmap-dev] maxspeed evalua

[mkgmap-dev] maxspeed evaluation

2015-08-13 Thread Gerd Petermann
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: