
Howard Picken - 2011-07-09 11:37:23
Trying to convert UTM to Long/Lat
$teamlocation =& new gPoint();
$longOrigin = -41;
$teamlocation->setUTM($row['curpos_easting'],$row['curpos_northing'],$row['curpos_zone']);
echo "My GPS says it is this: "; $teamlocation->printUTM(); echo "<br>";
$teamlocation->convertTMtoLL();
echo 'The LL Map reference is '; $teamlocation->printLatLong($longOrigin);
For the folllowing UTM figures Easting 511487 and Northing 5413791 55G gives "The LL Map reference is Latitude: -131.15964 Longitude: 146.84345" which is grossly incorrect.
Any suggestions please.