This is the last patch for the series. I'm not really sure if it should
be applied. I don't even find out where I got this patch from. I just
assumed that someone thought about writing it, and hence it provides
some benefit.
I really don't know whether this patch improves or degrades the map.
Actually mostly wondering on what it is worth:
Index: src/uk/me/parabola/mkgmap/filters/DouglasPeuckerFilter.java
===================================================================
--- src/uk/me/parabola/mkgmap/filters/DouglasPeuckerFilter.java (revision 1652)
+++ src/uk/me/parabola/mkgmap/filters/DouglasPeuckerFilter.java (working copy)
@@ -66,6 +66,7 @@
coords.addAll(points);
//#if (Node version)
+/*
//Don't touch Coords, which are nodes.
//So points at crossings will not be moved
// For now simplify all points, which are not nodes
@@ -86,13 +87,13 @@
}
// Simplify the rest
douglasPeucker(coords, 0, endIndex, maxErrorDistance);
-
+*/
//#else Straight version
//Do the douglasPeucker on the whole line.
//Deletes more points, but may lead to incorrect display of crossings at given high error distances
-/*
- douglasPeucker(coords, 0, n, maxErrorDistance);
- */
+
+ douglasPeucker(coords, 0, coords.size()-1, maxErrorDistance);
+
//#endif
MapLine newline = line.copy();
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev