PHP Class Location\Ellipsoid

Author: Marcus Jaschen ([email protected])
Show file Open project: mjaschen/phpgeo Class Usage Examples

Protected Properties

Property Type Description
$a float The semi-major axis
$configs array Some often used ellipsoids
$f float The Inverse Flattening (1/f)
$name string

Public Methods

Method Description
__construct ( $name, $a, $f )
createDefault ( string $name = 'WGS-84' ) : Ellipsoid
createFromArray ( $config ) : Ellipsoid
getA ( ) : float
getArithmeticMeanRadius ( ) : float Calculates the arithmetic mean radius
getB ( ) : float Calculation of the semi-minor axis
getF ( ) : float
getName ( ) : string

Method Details

__construct() public method

public __construct ( $name, $a, $f )
$name
$a
$f

createDefault() public static method

public static createDefault ( string $name = 'WGS-84' ) : Ellipsoid
$name string
return Ellipsoid

createFromArray() public static method

public static createFromArray ( $config ) : Ellipsoid
$config
return Ellipsoid

getA() public method

public getA ( ) : float
return float

getArithmeticMeanRadius() public method

Calculates the arithmetic mean radius
See also: http://home.online.no/~sigurdhu/WGS84_Eng.html
public getArithmeticMeanRadius ( ) : float
return float

getB() public method

Calculation of the semi-minor axis
public getB ( ) : float
return float

getF() public method

public getF ( ) : float
return float

getName() public method

public getName ( ) : string
return string

Property Details

$a protected property

The semi-major axis
protected float $a
return float

$configs protected static property

Some often used ellipsoids
protected static array $configs
return array

$f protected property

The Inverse Flattening (1/f)
protected float $f
return float

$name protected property

protected string $name
return string