Bug in GPS conversion

Post Reply
User avatar
pferland
Contributor
Contributor
Posts: 406
Joined: Mon Oct 22, 2007 8:38 am
Location: The Universe
Contact:

Bug in GPS conversion

Post by pferland »

There is an issue with the GPS converter, where if the Geo-Cord for DDM.m is only 2 digits before the '.' then it will convert it wrong.
example:

Code: Select all

This: N 4052.9323 E 47.8406

Was being converted to 
This: N 40.882205 E 4.79734333

When it was supposed to be
This: N 40.882205 E 0.79734333
The issue is resolved by replacing line 2053 in [db_root]/lib/database.inc.php {SVN Rev 520 or below)

Code: Select all

$geocord_deg = $geocord_exp[0][0];
With

Code: Select all

$geocord_deg = 0;
This fix has been tested and moved over to Andrews production server code base and will be in the next release.
The best acceleration you can get on a Mac is 9.8ms^2
Post Reply