Ejemplo n.º 1
0
 public static function convertUtmToLL($e, $n, $z, $d)
 {
     $retArr = array();
     if ($e && $n && $z) {
         $gPoint = new GPoint($d);
         $gPoint->setUTM($e, $n, $z);
         $gPoint->convertTMtoLL();
         $lat = $gPoint->Lat();
         $lng = $gPoint->Long();
         if ($lat && $lng) {
             $retArr['lat'] = round($lat, 6);
             $retArr['lng'] = round($lng, 6);
         }
     }
     return $retArr;
 }