PHP Classes

Conversion Issues

Recommend this page to a friend!

      gPoint  >  All threads  >  Conversion Issues  >  (Un) Subscribe thread alerts  
Subject:Conversion Issues
Summary:Inaccurate convert from UTM to LL
Messages:3
Author:Howard Picken
Date:2011-07-09 11:37:23
Update:2012-09-13 10:24:59
 

  1. Conversion Issues   Reply   Report abuse  
Picture of Howard Picken 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.

  2. Re: Conversion Issues   Reply   Report abuse  
Picture of kamil adam kamil adam - 2012-09-13 10:25:00 - In reply to message 1 from Howard Picken
Have you find a solution?

  3. Re: Conversion Issues   Reply   Report abuse  
Picture of Vick Airfull Vick Airfull - 2015-09-27 08:51:02 - In reply to message 1 from Howard Picken
Comment in original file maybe explain what is happening...

// If a value is passed for $LongOrigin then the function assumes that
// a Local (to the Longitude of Origin passed in) Transverse Mercator
// coordinates is to be converted - not a UTM coordinate.