Inheritance: implements ValueObjects\ValueObjectInterface
 /**
  * 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;
 }
Example #2
0
 public function testToString()
 {
     $this->assertSame('40.829137,16.555838', $this->coordinate->__toString());
 }