class Ellipsoid

Ellipsoid class

Constants

AIRY

List of selected reference ellipsoids.

AUSTRALIAN_NATIONAL

BESSEL_1841

BESSEL_1841_NAMBIA

CLARKE_1866

CLARKE_1880

EVEREST

FISCHER_1960_MERCURY

FISCHER_1968

GRS_1967

GRS_1980

HELMERT_1906

HOUGH

INTERNATIONAL

KRASSOVSKY

MODIFIED_AIRY

MODIFIED_EVEREST

MODIFIED_FISCHER_1960

SOUTH_AMERICAN_1969

WGS60

WGS66

WGS72

WGS84

Properties

protected string $name

The name of the Ellipsoid.

protected float $a

The semi-major axis (equatorial radius) in meters.

protected float $invF

The inverse flattening.

static protected array $referenceEllipsoids

Selected reference ellipsoids.

Methods

__construct(string $name, float $a, float $invF)

Create a new ellipsoid.

static Ellipsoid
createFromName(string $name = self::WGS84)

Create the ellipsoid chosen by its name.

static Ellipsoid
createFromArray(array $newEllipsoid)

Create an ellipsoid from an array.

static 
checkCoordinatesEllipsoid(CoordinatesInterface $a, CoordinatesInterface $b)

Check if coordinates have the same ellipsoid.

string
getName()

Returns the ellipsoid's name.

float
getA()

Returns the semi-major axis (equatorial radius) in meters.

float
getB()

Computes and returns the semi-minor axis (polar distance) in meters.

float
getInvF()

Returns the inverse flattening.

float
getArithmeticMeanRadius()

Computes and returns the arithmetic mean radius in meters.

static string
getAvailableEllipsoidNames()

Returns the list of available ellipsoids sorted by alphabetical order.

Details

at line 208
__construct(string $name, float $a, float $invF)

Create a new ellipsoid.

Parameters

string $name

The name of the ellipsoid to create.

float $a

The semi-major axis (equatorial radius) in meters.

float $invF

The inverse flattening.

Exceptions

InvalidArgumentException

at line 226
static Ellipsoid createFromName(string $name = self::WGS84)

Create the ellipsoid chosen by its name.

Parameters

string $name

The name of the ellipsoid to create (optional).

Return Value

Ellipsoid

at line 250
static Ellipsoid createFromArray(array $newEllipsoid)

Create an ellipsoid from an array.

Parameters

array $newEllipsoid

The ellipsoid's parameters to create.

Return Value

Ellipsoid

at line 267
static checkCoordinatesEllipsoid(CoordinatesInterface $a, CoordinatesInterface $b)

Check if coordinates have the same ellipsoid.

Parameters

CoordinatesInterface $a

A coordinate.

CoordinatesInterface $b

A coordinate.

Exceptions

GeoliteException

at line 279
string getName()

Returns the ellipsoid's name.

Return Value

string

at line 289
float getA()

Returns the semi-major axis (equatorial radius) in meters.

Return Value

float

at line 300
float getB()

Computes and returns the semi-minor axis (polar distance) in meters.

at line 310
float getInvF()

Returns the inverse flattening.

Return Value

float

at line 321
float getArithmeticMeanRadius()

Computes and returns the arithmetic mean radius in meters.

at line 331
static string getAvailableEllipsoidNames()

Returns the list of available ellipsoids sorted by alphabetical order.

Return Value

string

The list of available ellipsoids comma separated.