pike.git / lib / modules / Geography.pmod / Position.pike

version» Context lines:

pike.git/lib/modules/Geography.pmod/Position.pike:159:    return (equatorial_radius - polar_radius) / equatorial_radius;   }      //! Returns the first eccentricity squared for the   //! selected earth approximation ellipsoid.   float eccentricity_squared() {    float f = flattening();    return 2*f - pow(f,2);   }    + // FIXME: Consider adding models from http://epsg-registry.org/. +    //! A mapping with reference ellipsoids, which can be fed to the   //! UTM converter. The mapping maps the name of the ellipsoid to   //! an array where the first element is a float describing the   //! equatorial radius and the second element is a float describing   //! the polar radius.   //!   constant ellipsoids =    ([ "Airy 1830" : ({ 6377563.396, 6356256.91 }),    "ATS77" : ({ 6378135.0, 6356750.304922 }),    "Australian National" : ({ 6378160.0, 6356774.719 }),