logo separator

[mkgmap-dev] Bugfix: the tag mkgmap:gtype didn't set the road speed properly.

From Thilo Hannemann thannema at gmx.de on Sat May 8 22:05:17 BST 2010

In the code handling the mkgmap:gtype tag the road class is set twice, but it should be the road speed the second time. See the attached patch to correct this.


Index: src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
===================================================================
--- src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java	(revision 1643)
+++ src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java	(working copy)
@@ -264,7 +264,7 @@
 
 		if(vals.length >= 6 && vals[5].length() > 0) {
 			try {
-				gt.setRoadClass(Integer.decode(vals[5]));
+				gt.setRoadSpeed(Integer.decode(vals[5]));
 			}
 			catch (NumberFormatException nfe) {
 				log.error("OSM element " + element.getId() + " has bad value for roadspeed: " + vals[5]);




More information about the mkgmap-dev mailing list