On 26/08/13 20:37, Felix Hartmann wrote:
lines file (only this content needed).
highway=motorway & bridge=yes {set mkgmap:set_unconnected_type=none}
[0x13 road_class=1 road_speed=0 resolution 24 continue]
highway=motorway [0x10001 resolution 24 continue]

Its because the road is completely removed when it is unconnected and the unconnected type is none.

Perhaps it shouldn't be completely removed, see attached patch.

However the patch may break something that it is supposed to do though...

..Steve
Index: src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java	(revision 2678)
+++ src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java	(revision )
@@ -1862,7 +1862,7 @@
 					if (onBoundary){
 						log.info("road not connected to other roads but is on boundary: " + way.toBrowseURL());
 					} else {
-						if ("none".equals(check_type)) 
+						if ("none".equals(check_type))
 							log.info("road not connected to other roads, is ignored: " + way.toBrowseURL());
 						else {
 							int type = -1;
@@ -1885,7 +1885,6 @@
 						}
 						roads.set(i, null);
 						roadTypes.set(i, null);
-						deletedRoads.add(way.getId()); // XXX Maybe not if road is changed to a line?
 					}
 				}
 			}
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to