I found a solution to merging the parallel lanes of dual-carriageways before doing polyline-simplification.
You can find the code in: http://travelingsales.svn.sourceforge.net/viewvc/travelingsales/libosm/src/org/openstreetmap/osm/data/LODDataSet.java?view=markup Method: mergeWays(final Way part, final WayBuilder existing) Line: 716 and http://travelingsales.svn.sourceforge.net/viewvc/travelingsales/libosm/src/org/openstreetmap/osm/data/WayHelper.java?view=markup Method: List<Node> isParallel(final List<Node> aFirstWay, final List<Node> aSecondWay) Line: 569 the simplified maps look much better and can be painted much faster then before. Next step will be a faster polyline-simplification without trigonometric functions. Marcus _______________________________________________ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev