PHP Class League\Geotools\Coordinate\Ellipsoid

See also: http://en.wikipedia.org/wiki/Reference_ellipsoid
See also: http://www.colorado.edu/geography/gcraft/notes/datum/gif/ellipse.gif
Author: Antoine Corcy ([email protected])
Exibir arquivo Open project: toin0u/geotools Class Usage Examples

Protected Properties

Property Type Description
$a double The semi-major axis (equatorial radius) in meters.
$invF double The inverse flattening.
$name string The name of the Ellipsoid.
$referenceEllipsoids array Source: Defense Mapping Agency. 1987b. Washington, DC: Defense Mapping Agency DMA Technical Report: Supplement to Department of Defense World Geodetic System 1984 Technical Report.

Public Methods

Method Description
__construct ( string $name, double $a, double $invF ) Create a new ellipsoid.
checkCoordinatesEllipsoid ( League\Geotools\Coordinate\CoordinateInterface $a, League\Geotools\Coordinate\CoordinateInterface $b ) Check if coordinates have the same ellipsoid.
createFromArray ( array $newEllipsoid ) : Ellipsoid Create an ellipsoid from an array.
createFromName ( string $name = self::WGS84 ) : Ellipsoid Create the ellipsoid chosen by its name.
getA ( ) : double Returns the semi-major axis (equatorial radius) in meters.
getArithmeticMeanRadius ( ) : double Computes and returns the arithmetic mean radius in meters.
getAvailableEllipsoidNames ( ) : string Returns the list of available ellipsoids sorted by alphabetical order.
getB ( ) : double Computes and returns the semi-minor axis (polar distance) in meters.
getInvF ( ) : double Returns the inverse flattening.
getName ( ) : string Returns the ellipsoid's name.

Method Details

__construct() public method

Create a new ellipsoid.
public __construct ( string $name, double $a, double $invF )
$name string The name of the ellipsoid to create.
$a double The semi-major axis (equatorial radius) in meters.
$invF double The inverse flattening.

checkCoordinatesEllipsoid() public static method

Check if coordinates have the same ellipsoid.
public static checkCoordinatesEllipsoid ( League\Geotools\Coordinate\CoordinateInterface $a, League\Geotools\Coordinate\CoordinateInterface $b )
$a League\Geotools\Coordinate\CoordinateInterface A coordinate.
$b League\Geotools\Coordinate\CoordinateInterface A coordinate.

createFromArray() public static method

Create an ellipsoid from an array.
public static createFromArray ( array $newEllipsoid ) : Ellipsoid
$newEllipsoid array The ellipsoid's parameters to create.
return Ellipsoid

createFromName() public static method

Create the ellipsoid chosen by its name.
public static createFromName ( string $name = self::WGS84 ) : Ellipsoid
$name string The name of the ellipsoid to create (optional).
return Ellipsoid

getA() public method

Returns the semi-major axis (equatorial radius) in meters.
public getA ( ) : double
return double

getArithmeticMeanRadius() public method

Computes and returns the arithmetic mean radius in meters.
See also: http://home.online.no/~sigurdhu/WGS84_Eng.html
public getArithmeticMeanRadius ( ) : double
return double

getAvailableEllipsoidNames() public static method

Returns the list of available ellipsoids sorted by alphabetical order.
public static getAvailableEllipsoidNames ( ) : string
return string The list of available ellipsoids comma separated.

getB() public method

Computes and returns the semi-minor axis (polar distance) in meters.
See also: http://home.online.no/~sigurdhu/WGS84_Eng.html
public getB ( ) : double
return double

getInvF() public method

Returns the inverse flattening.
public getInvF ( ) : double
return double

getName() public method

Returns the ellipsoid's name.
public getName ( ) : string
return string

Property Details

$a protected_oe property

The semi-major axis (equatorial radius) in meters.
See also: http://en.wikipedia.org/wiki/Earth_radius
See also: http://home.online.no/~sigurdhu/WGS84_Eng.html
protected double $a
return double

$invF protected_oe property

The inverse flattening.
See also: http://home.online.no/~sigurdhu/WGS84_Eng.html
protected double $invF
return double

$name protected_oe property

The name of the Ellipsoid.
protected string $name
return string

$referenceEllipsoids protected_oe static_oe property

Source: Defense Mapping Agency. 1987b. Washington, DC: Defense Mapping Agency DMA Technical Report: Supplement to Department of Defense World Geodetic System 1984 Technical Report.
See also: http://en.wikipedia.org/wiki/Geodetic_datum
See also: http://www.colorado.edu/geography/gcraft/notes/datum/gif/refellip.gif
protected static array $referenceEllipsoids
return array