
5 Feb
2013
5 Feb
'13
7:38 a.m.
Hi, I simply copied it to the LinePreparerFilter, but what is the idea behind this code in LinePreparer? // compute normalized differences // -2^(shift-1) <= dx, dy < 2^(shift-1) // XXX: relies on the fact that java integers are 32 bit signed final int offset = 8+shift; int dx = (lon - lastLong) << offset >> offset; int dy = (lat - lastLat) << offset >> offset; I don't understand the comment. Why are the values shifted left and right? While debugging I did not see a case where this changed the result. Gerd -- View this message in context: http://gis.19327.n5.nabble.com/Question-reg-LinePreparer-tp5748142.html Sent from the Mkgmap Development mailing list archive at Nabble.com.