Hi Gerd

Patch attached that fixes isSpecialRoutableLineType to values that
definitely make BaseCamp routeing to fail when they are used for a non
-routeable line and a change to allow mkgmap:set-[un,semi-]connected
-type to be a non-routeable type lower than 0x30

Ticker 
Index: src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
===================================================================
--- src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java	(revision 4557)
+++ src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java	(working copy)
@@ -2118,7 +2118,7 @@
 		int replType = -1;
 		try {
 			replType = Integer.decode(replTypeString);
-			if (GType.isRoutableLineType(replType)) {
+			if (GType.isSpecialRoutableLineType(replType)) {
 				replType = -1;
 				log.error("type value in", tagKey, "should not be a routable type:" + replTypeString);
 			}
Index: src/uk/me/parabola/mkgmap/reader/osm/GType.java
===================================================================
--- src/uk/me/parabola/mkgmap/reader/osm/GType.java	(revision 4557)
+++ src/uk/me/parabola/mkgmap/reader/osm/GType.java	(working copy)
@@ -260,7 +260,7 @@
 	 * known to cause routing errors if used for non-routable lines. 
 	 */
 	public static boolean isSpecialRoutableLineType(int type){
-		return type >= 0x01 && type <= 0x13 || type == 0x16 || type == 0x1a || type == 0x1b;
+		return type >= 0x01 && type <= 0x13 || type == 0x16 || type == 0x1a || type == 0x1b || type >= 0x2c && type <= 0x2f;
 	}
 	
 	/**
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to