Keeping in mind that I don't really speak perl . . .I was trying to
understand the tile number calculation, and came upon a bit that
doesn't make sense to me in the tile_index function.  It looks like
it doesn't handle near-polar latitudes correctly -- like it resets
the longitude (which never gets used again, so why reset it?) when
it should be setting the variable "x" that covers the low-order bits
of the tile number.  "x" gets set for latitudes in the range
-83 <= lat <= 82; but for latitudes closer to a pole than that,
"$x" is unset before adding to the tile index number.  Should
those resettings of $lon be setting $x instead?


Chris Metzler                   [EMAIL PROTECTED]
                (remove "snip-me." to email)

"As a child I understood how to give; I have forgotten this grace since I
have become civilized." - Chief Luther Standing Bear

Attachment: pgpO9Cg0aCKb6.pgp
Description: PGP signature

Flightgear-devel mailing list

Reply via email to