Page 1 of 1

Bug in GPS conversion

Posted: Tue Jan 19, 2010 9:57 am
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.