Hello

I kind of recognise the symptoms, but the cause could be just about anything.

     [apply] SEVERE (Polyline): /home/osm/build/59420066.osm.gz: Problem
writing line (class uk.me.parabola.imgfmt.app.trergn.Polyline) of type
0x10a0c containing 2 points and starting at
http://www.openstreetmap.org/?mlat=49.18023&mlon=12.08496&zoom=17


I think this error is appropriate, except that the real error has been caught in order to print the error message, so hiding the real error.

If you could apply the attached patch and run the same thing you should
get a better error to send me.

Alternatively it might be obvious by looking at the url printed in the messages if the problem is in the data - look for road with very long segments or something obviously wrong with them.

..Steve
Index: src/uk/me/parabola/imgfmt/app/trergn/Polyline.java
===================================================================
--- src/uk/me/parabola/imgfmt/app/trergn/Polyline.java	(revision 1650)
+++ src/uk/me/parabola/imgfmt/app/trergn/Polyline.java	(revision )
@@ -79,19 +79,8 @@
 		// Prepare for writing by doing all the required calculations.
 
 		LinePreparer w;
-		try {
-			// Prepare the information that we need.
-			w = new LinePreparer(this);
+		// Prepare the information that we need.
+		w = new LinePreparer(this);
-		}
-		catch (AssertionError ae) {
-			log.error("Problem writing line (" + getClass() + ") of type 0x" + Integer.toHexString(getType()) + " containing " + points.size() + " points and starting at " + points.get(0).toOSMURL());
-			log.error("  Subdivision shift is " + getSubdiv().getShift() +
-					  " and its centre is at " + new Coord(getSubdiv().getLatitude(), getSubdiv().getLongitude()).toOSMURL());
-			log.error("  " + ae.getMessage());
-			if(roaddef != null)
-				log.error("  Way is " + roaddef);
-			return;
-		}
 
 		int minPointsRequired = (this instanceof Polygon)? 3 : 2;
 		BitWriter bw = w.makeBitStream(minPointsRequired);
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to