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]);
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev