[PATCH 1/2] Save latitude/longitude using integer math
Dirk Hohndel
dirk at hohndel.org
Wed Dec 5 10:32:17 PST 2012
Linus Torvalds <torvalds at linux-foundation.org> writes:
> From: Linus Torvalds <torvalds at linux-foundation.org>
> Date: Wed, 5 Dec 2012 08:25:33 -0800
> Subject: [PATCH 1/2] Save latitude/longitude using integer math
>
> I hate using floating point, this tries to at least make parts of it be
> integer logic, and avoid the whole locale issue. This still keeps the
> latitude and longitude internally as a floating point value, and parses
> it that way, but I'm slowly moving towards less and less FP use.
YAY!
> We're going to use micro-degrees for location information: that's
> sufficient to about a tenth of a meter precision, and it fits in a
> 32-bit integer.
>
> If you specify dive sites with more precision than that, you may have
> OCD.
You also have access to a better location source than gps...
BTW: what we really need is a way to DO something with the GPS data.
I envision the ability to turn the location into a hyperlink if we have
GPS data and have a click on that open a browser window with a map or
something...
Any volunteers?
/D
More information about the subsurface
mailing list