Re: [mkgmap-dev] maxspeed evaluation
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_muenc...@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_muenc...@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
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_muenc...@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
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-max is completely ignored. My early proposition for limiting speed looked like this: ... { set mkgmap:road-speed='-0'; set mkgmap:road-speed-max = 2 } This was solution, that I found working in my tests. Is mkgmap:road-speed-max evaluated after adding mkgmap:road-speed? If yes, then your proposition looks better. -- Best regards, Andrzej ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] maxspeed evaluation
Hi Andrjez, I've tested with the attached patch and it seems to work fine. I think the advantage of my version is that it doesn't override an existing mkgmap:road-speed=* tag. Gerd To: mkgmap-dev@lists.mkgmap.org.uk From: po...@poczta.onet.pl Date: Fri, 14 Aug 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-max is completely ignored. My early proposition for limiting speed looked like this: ... { set mkgmap:road-speed='-0'; set mkgmap:road-speed-max = 2 } This was solution, that I found working in my tests. Is mkgmap:road-speed-max evaluated after adding mkgmap:road-speed? If yes, then your proposition looks better. -- Best regards, Andrzej ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev maxspeed.patch Description: Binary data ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
[mkgmap-dev] Wierd routing problem
I'm having a weird routing problem! I'm using CreateIMG (which uses mkgmap to do the work) to create a Garmin compatible map of the UK. I've installed this map into BaseCamp, and I'm trying to create a route. There's a point on a local minor road which BaseCamp refuses to route through *unless* the route options permit the use of 'Interstates'! There is no node in OpenStreetMap at this point, although BaseCamp, displaying the map I've created, does show a black dot at the point in question. I don't know what this black dot signifies. The problem point is at the centre of http://www.openstreetmap.org/#map=16/52.1631/0.2473 and the BaseCamp view of this area is http://www.jjdash.myzen.co.uk/temp/routeproblem.png This problem has only recently started happening, though I both have updated BaseCamp and built a new map from current data, and don't know which of these might be responsible. I am using a slightly customised set of stylesheets, but these have not changed since the last time this worked properly. I also know CreateIMG uses rather an old version of mkgmap, but again this has not changed. Any ideas? Or is there a better place to ask for help? Thanks in advance! -- Cheers, John ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Removal of --adjust-turn-headings option ok?
Am 12.08.2015 um 10:46 schrieb Gerd Petermann: I'd like to remove the code and the option, I think it produces more or less unpredictable results and I found no problems with maps created without the option. ok for me. Chris ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
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: mkgmap:road-speed='+0' -- Best regards, Andrzej ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] maxspeed evaluation
Hi Gerd When i test this new rule, i got this, i use the default inc/roadspeed java.lang.NumberFormatException: Zero length string at java.lang.Integer.decode(Integer.java:1162) at java.lang.Byte.decode(Byte.java:277) at uk.me.parabola.mkgmap.osmstyle.ConvertedWay.recalcRoadSpeed(ConvertedWay.java:200) at uk.me.parabola.mkgmap.osmstyle.ConvertedWay.init(ConvertedWay.java:58) at uk.me.parabola.mkgmap.osmstyle.StyledConverter.addConvertedWay(StyledConverter.java:360) at uk.me.parabola.mkgmap.osmstyle.StyledConverter.access$400(StyledConverter.java:84) at uk.me.parabola.mkgmap.osmstyle.StyledConverter$WayTypeResult.add(StyledConverter.java:236) at uk.me.parabola.mkgmap.reader.osm.WatchableTypeResult.add(WatchableTypeResult.java:45) at uk.me.parabola.mkgmap.osmstyle.ExpressionRule.resolveType(ExpressionRule.java:85) at uk.me.parabola.mkgmap.osmstyle.RuleSet.resolveType(RuleSet.java:97) at uk.me.parabola.mkgmap.osmstyle.StyledConverter.convertWay(StyledConverter.java:294) at uk.me.parabola.mkgmap.reader.osm.ElementSaver.convert(ElementSaver.java:245) at uk.me.parabola.mkgmap.reader.osm.o5m.O5mBinMapDataSource.load(O5mBinMapDataSource.java:53) at uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.load(OsmMapDataSource.java:130) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:154) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:52) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:255) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:251) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 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_muenc...@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_muenc...@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
Re: [mkgmap-dev] maxspeed evaluation
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_muenc...@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_muenc...@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
Re: [mkgmap-dev] maxspeed evaluation
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 independent of mkgmap:road-speed could be even better solution. At least this is what we need for processing maxspeed tag, this -0 value is quite artificial. -- Best regards, Andrzej ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] maxspeed evaluation
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: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 independent of mkgmap:road-speed could be even better solution. At least this is what we need for processing maxspeed tag, this -0 value is quite artificial. -- Best regards, Andrzej ___ mkgmap-dev mailing list mkgmap-dev@.org http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -- View this message in context: http://gis.19327.n5.nabble.com/maxspeed-evaluation-tp5852295p5852309.html Sent from the Mkgmap Development mailing list archive at Nabble.com. ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] maxspeed evaluation
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_muenc...@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_muenc...@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 ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
[mkgmap-dev] lines
in the lines file is there a way to have primary, seconday, teritary and living streets with side street displayed . so that in the Header box more indication is given , so far only highway = motor way is is hboxed any iideas ? Stephen ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev