Exemple #1
0
 public function init()
 {
     if (!$this->sphere) {
         $this->en = Common::pj_enfn($this->es);
         $this->m0 = Common::pj_mlfn($this->lat0, sin($this->lat0), cos($this->lat0), $this->en);
     }
 }
Exemple #2
0
 public function init()
 {
     /* Place parameters in static storage for common use
        ------------------------------------------------- */
     #$this->R = 6370997.0; //Radius of earth
     if (!$this->sphere) {
         $this->en = Common::pj_enfn($this->es);
     } else {
         $this->n = 1.0;
         $this->m = 0.0;
         $this->es = 0;
         $this->C_y = sqrt(($this->m + 1.0) / $this->n);
         $this->C_x = $this->C_y / ($this->m + 1.0);
     }
 }