createFromArray() 공개 정적인 메소드

public static createFromArray ( $config ) : Ellipsoid
$config
리턴 Ellipsoid
예제 #1
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     $ellipsoidConfig = array('name' => 'WGS-84', 'a' => 6378137.0, 'f' => 298.257223563);
     $this->ellipsoid = Ellipsoid::createFromArray($ellipsoidConfig);
     $this->calculator = new Haversine();
 }
예제 #2
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     $ellipsoidConfig = ['name' => 'WGS-84', 'a' => 6378137.0, 'f' => 298.257223563];
     $this->ellipsoid = Ellipsoid::createFromArray($ellipsoidConfig);
 }
예제 #3
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     $ellipsoidConfig = array('name' => 'WGS-84', 'a' => 6378137.0, 'f' => 298.257223563);
     $this->ellipsoid = Ellipsoid::createFromArray($ellipsoidConfig);
     $this->coordinate = new Coordinate(52.5, 13.5, $this->ellipsoid);
 }