getEllipsoid() public method

Returns ellipsoid
public getEllipsoid ( ) : ValueObjects\Geography\Ellipsoid
return ValueObjects\Geography\Ellipsoid
コード例 #1
0
 /**
  * Returns the underlying Coordinate object
  *
  * @param  self           $coordinate
  * @return BaseCoordinate
  */
 protected static function getBaseCoordinate(self $coordinate)
 {
     $latitude = $coordinate->getLatitude()->toNative();
     $longitude = $coordinate->getLongitude()->toNative();
     $ellipsoid = BaseEllipsoid::createFromName($coordinate->getEllipsoid()->toNative());
     $coordinate = new BaseCoordinate(array($latitude, $longitude), $ellipsoid);
     return $coordinate;
 }
コード例 #2
0
 public function getEllipsoid()
 {
     $ellipsoid = Ellipsoid::WGS84();
     $this->assertTrue($this->coordinate->getEllipsoid()->sameValueAs($ellipsoid));
 }