[mkgmap-dev] Question reg. LinePreparer
From GerdP gpetermann_muenchen at hotmail.com on Tue Feb 5 07:38:42 GMT 2013
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.
- Previous message: [mkgmap-dev] Commit: r2474: Fix typo: supportsNode --> supportsRelation
- Next message: [mkgmap-dev] Question reg. LinePreparer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list