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;
 }
示例#2
0
 /**
  * Predisplay function
  *
  * @return void
  */
 function prepare()
 {
     $p1 = new GPoint();
     $p1->setCoordinates($this->_x1, $this->_y1);
     $bsize = (int) ($this->getSize() / 3) + 1;
     $p1->setSize($this->getSize() + $bsize);
     $p1->setColor($this->_background_r_color, $this->_background_g_color, $this->_background_b_color);
     $this->addElement($p1);
     $p2 = new GPoint();
     $p2->setCoordinates($this->_x1, $this->_y1);
     $p2->setSize($this->getSize());
     $p2->setColor($this->_r_color, $this->_g_color, $this->_b_color);
     $this->addElement($p2);
 }