Copied!

Ellipsoid class

  • author Antoine Corcy
  • see http://en.wikipedia.org/wiki/Reference_ellipsoid
  • see http://www.colorado.edu/geography/gcraft/notes/datum/gif/ellipse.gif
CloneableInstantiable
Constants
public League\Geotools\Coordinate\Ellipsoid::AIRY = 'AIRY'
 

List of selected reference ellipsoids.

  • var string
public League\Geotools\Coordinate\Ellipsoid::AUSTRALIAN_NATIONAL = 'AUSTRALIAN_NATIONAL'
public League\Geotools\Coordinate\Ellipsoid::BESSEL_1841 = 'BESSEL_1841'
public League\Geotools\Coordinate\Ellipsoid::BESSEL_1841_NAMBIA = 'BESSEL_1841_NAMBIA'
public League\Geotools\Coordinate\Ellipsoid::CLARKE_1866 = 'CLARKE_1866'
public League\Geotools\Coordinate\Ellipsoid::CLARKE_1880 = 'CLARKE_1880'
public League\Geotools\Coordinate\Ellipsoid::EVEREST = 'EVEREST'
public League\Geotools\Coordinate\Ellipsoid::FISCHER_1960_MERCURY = 'FISCHER_1960_MERCURY'
public League\Geotools\Coordinate\Ellipsoid::FISCHER_1968 = 'FISCHER_1968'
public League\Geotools\Coordinate\Ellipsoid::GRS_1967 = 'GRS_1967'
public League\Geotools\Coordinate\Ellipsoid::GRS_1980 = 'GRS_1980'
public League\Geotools\Coordinate\Ellipsoid::HELMERT_1906 = 'HELMERT_1906'
public League\Geotools\Coordinate\Ellipsoid::HOUGH = 'HOUGH'
public League\Geotools\Coordinate\Ellipsoid::INTERNATIONAL = 'INTERNATIONAL'
public League\Geotools\Coordinate\Ellipsoid::KRASSOVSKY = 'KRASSOVSKY'
public League\Geotools\Coordinate\Ellipsoid::MODIFIED_AIRY = 'MODIFIED_AIRY'
public League\Geotools\Coordinate\Ellipsoid::MODIFIED_EVEREST = 'MODIFIED_EVEREST'
public League\Geotools\Coordinate\Ellipsoid::MODIFIED_FISCHER_1960 = 'MODIFIED_FISCHER_1960'
public League\Geotools\Coordinate\Ellipsoid::SOUTH_AMERICAN_1969 = 'SOUTH_AMERICAN_1969'
public League\Geotools\Coordinate\Ellipsoid::WGS60 = 'WGS60'
public League\Geotools\Coordinate\Ellipsoid::WGS66 = 'WGS66'
public League\Geotools\Coordinate\Ellipsoid::WGS72 = 'WGS72'
public League\Geotools\Coordinate\Ellipsoid::WGS84 = 'WGS84'
Methods
public __construct( $name, $a, $invF)
 

Create a new ellipsoid.

  • param string $name The name of the ellipsoid to create.
  • param float $a The semi-major axis (equatorial radius) in meters.
  • param float $invF The inverse flattening.
  • throws \InvalidArgumentException
public static checkCoordinatesEllipsoid(League\Geotools\Coordinate\CoordinateInterface $a, League\Geotools\Coordinate\CoordinateInterface $b)
 

Check if coordinates have the same ellipsoid.

  • param \CoordinateInterface $a A coordinate.
  • param \CoordinateInterface $b A coordinate.
  • throws \NotMatchingEllipsoidException
public static createFromArray(array $newEllipsoid)
 

Create an ellipsoid from an array.

  • param array $newEllipsoid The ellipsoid's parameters to create.
  • return \Ellipsoid
public static createFromName( $name = 'WGS84'self::)
 

Create the ellipsoid chosen by its name.

  • param string $name The name of the ellipsoid to create (optional).
  • return \Ellipsoid
public getA()
 

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

  • return float
public getArithmeticMeanRadius()
 

Computes and returns the arithmetic mean radius in meters.

  • see http://home.online.no/~sigurdhu/WGS84_Eng.html
  • return float
public static getAvailableEllipsoidNames()
 

Returns the list of available ellipsoids sorted by alphabetical order.

  • return string The list of available ellipsoids comma separated.
public getB()
 

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

  • see http://home.online.no/~sigurdhu/WGS84_Eng.html
  • return float
public getInvF()
 

Returns the inverse flattening.

  • return float
public getName()
 

Returns the ellipsoid's name.

  • return string
Properties
protected $a = NULL
 

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

  • see http://en.wikipedia.org/wiki/Earth_radius
  • see http://home.online.no/~sigurdhu/WGS84_Eng.html
  • var float
protected $invF = NULL
 

The inverse flattening.

  • see http://home.online.no/~sigurdhu/WGS84_Eng.html
  • var float
protected $name = NULL
 

The name of the Ellipsoid.

  • var string
protected static $referenceEllipsoids = ['AIRY' => ['name' => 'Airy', 'a' => 6377563.396, 'invF' => 299.3249646], 'AUSTRALIAN_NATIONAL' => ['name' => 'Australian National', 'a' => 6378160, 'invF' => 298.25], 'BESSEL_1841' => ['name' => 'Bessel 1841', 'a' => 6377397.155, 'invF' => 299.1528128], 'BESSEL_1841_NAMBIA' => ['name' => 'Bessel 1841 (Nambia)', 'a' => 6377483.865, 'invF' => 299.1528128], 'CLARKE_1866' => ['name' => 'Clarke 1866', 'a' => 6378206.4, 'invF' => 294.9786982], 'CLARKE_1880' => ['name' => 'Clarke 1880', 'a' => 6378249.145, 'invF' => 293.465], 'EVEREST' => ['name' => 'Everest', 'a' => 6377276.345, 'invF' => 300.8017], 'FISCHER_1960_MERCURY' => ['name' => 'Fischer 1960 (Mercury)', 'a' => 6378166, 'invF' => 298.3], 'FISCHER_1968' => ['name' => 'Fischer 1968', 'a' => 6378150, 'invF' => 298.3], 'GRS_1967' => ['name' => 'GRS 1967', 'a' => 6378160, 'invF' => 298.247167427], 'GRS_1980' => ['name' => 'GRS 1980', 'a' => 6378137, 'invF' => 298.257222101], 'HELMERT_1906' => ['name' => 'Helmert 1906', 'a' => 6378200, 'invF' => 298.3], 'HOUGH' => ['name' => 'Hough', 'a' => 6378270, 'invF' => 297], 'INTERNATIONAL' => ['name' => 'International', 'a' => 6378388, 'invF' => 297], 'KRASSOVSKY' => ['name' => 'Krassovsky', 'a' => 6378245, 'invF' => 298.3], 'MODIFIED_AIRY' => ['name' => 'Modified Airy', 'a' => 6377340.189, 'invF' => 299.3249646], 'MODIFIED_EVEREST' => ['name' => 'Modified Everest', 'a' => 6377304.063, 'invF' => 300.8017], 'MODIFIED_FISCHER_1960' => ['name' => 'Modified Fischer 1960', 'a' => 6378155, 'invF' => 298.3], 'SOUTH_AMERICAN_1969' => ['name' => 'South American 1969', 'a' => 6378160, 'invF' => 298.25], 'WGS60' => ['name' => 'WGS 60', 'a' => 6378165, 'invF' => 298.3], 'WGS66' => ['name' => 'WGS 66', 'a' => 6378145, 'invF' => 298.25], 'WGS72' => ['name' => 'WGS 72', 'a' => 6378135, 'invF' => 298.26], 'WGS84' => ['name' => 'WGS 84', 'a' => 6378137, 'invF' => 298.257223563]]
 

Selected reference ellipsoids.

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 http://en.wikipedia.org/wiki/Geodetic_datum
  • see http://www.colorado.edu/geography/gcraft/notes/datum/gif/refellip.gif
  • var array
Properties
protected static $referenceEllipsoids = ['AIRY' => ['name' => 'Airy', 'a' => 6377563.396, 'invF' => 299.3249646], 'AUSTRALIAN_NATIONAL' => ['name' => 'Australian National', 'a' => 6378160, 'invF' => 298.25], 'BESSEL_1841' => ['name' => 'Bessel 1841', 'a' => 6377397.155, 'invF' => 299.1528128], 'BESSEL_1841_NAMBIA' => ['name' => 'Bessel 1841 (Nambia)', 'a' => 6377483.865, 'invF' => 299.1528128], 'CLARKE_1866' => ['name' => 'Clarke 1866', 'a' => 6378206.4, 'invF' => 294.9786982], 'CLARKE_1880' => ['name' => 'Clarke 1880', 'a' => 6378249.145, 'invF' => 293.465], 'EVEREST' => ['name' => 'Everest', 'a' => 6377276.345, 'invF' => 300.8017], 'FISCHER_1960_MERCURY' => ['name' => 'Fischer 1960 (Mercury)', 'a' => 6378166, 'invF' => 298.3], 'FISCHER_1968' => ['name' => 'Fischer 1968', 'a' => 6378150, 'invF' => 298.3], 'GRS_1967' => ['name' => 'GRS 1967', 'a' => 6378160, 'invF' => 298.247167427], 'GRS_1980' => ['name' => 'GRS 1980', 'a' => 6378137, 'invF' => 298.257222101], 'HELMERT_1906' => ['name' => 'Helmert 1906', 'a' => 6378200, 'invF' => 298.3], 'HOUGH' => ['name' => 'Hough', 'a' => 6378270, 'invF' => 297], 'INTERNATIONAL' => ['name' => 'International', 'a' => 6378388, 'invF' => 297], 'KRASSOVSKY' => ['name' => 'Krassovsky', 'a' => 6378245, 'invF' => 298.3], 'MODIFIED_AIRY' => ['name' => 'Modified Airy', 'a' => 6377340.189, 'invF' => 299.3249646], 'MODIFIED_EVEREST' => ['name' => 'Modified Everest', 'a' => 6377304.063, 'invF' => 300.8017], 'MODIFIED_FISCHER_1960' => ['name' => 'Modified Fischer 1960', 'a' => 6378155, 'invF' => 298.3], 'SOUTH_AMERICAN_1969' => ['name' => 'South American 1969', 'a' => 6378160, 'invF' => 298.25], 'WGS60' => ['name' => 'WGS 60', 'a' => 6378165, 'invF' => 298.3], 'WGS66' => ['name' => 'WGS 66', 'a' => 6378145, 'invF' => 298.25], 'WGS72' => ['name' => 'WGS 72', 'a' => 6378135, 'invF' => 298.26], 'WGS84' => ['name' => 'WGS 84', 'a' => 6378137, 'invF' => 298.257223563]]
 

Selected reference ellipsoids.

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 http://en.wikipedia.org/wiki/Geodetic_datum
  • see http://www.colorado.edu/geography/gcraft/notes/datum/gif/refellip.gif
  • var array
Methods
public static checkCoordinatesEllipsoid(League\Geotools\Coordinate\CoordinateInterface $a, League\Geotools\Coordinate\CoordinateInterface $b)
 

Check if coordinates have the same ellipsoid.

  • param \CoordinateInterface $a A coordinate.
  • param \CoordinateInterface $b A coordinate.
  • throws \NotMatchingEllipsoidException
public static createFromArray(array $newEllipsoid)
 

Create an ellipsoid from an array.

  • param array $newEllipsoid The ellipsoid's parameters to create.
  • return \Ellipsoid
public static createFromName( $name = 'WGS84'self::)
 

Create the ellipsoid chosen by its name.

  • param string $name The name of the ellipsoid to create (optional).
  • return \Ellipsoid
public static getAvailableEllipsoidNames()
 

Returns the list of available ellipsoids sorted by alphabetical order.

  • return string The list of available ellipsoids comma separated.
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration