pj_ellps.hpp 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // This file is manually converted from PROJ4
  3. // Copyright (c) 2008-2012 Barend Gehrels, Amsterdam, the Netherlands.
  4. // This file was modified by Oracle on 2017, 2018.
  5. // Modifications copyright (c) 2017-2018, Oracle and/or its affiliates.
  6. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  7. // Use, modification and distribution is subject to the Boost Software License,
  8. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. // This file is converted from PROJ4, http://trac.osgeo.org/proj
  11. // PROJ4 is originally written by Gerald Evenden (then of the USGS)
  12. // PROJ4 is maintained by Frank Warmerdam
  13. // PROJ4 is converted to Geometry Library by Barend Gehrels (Geodan, Amsterdam)
  14. // Original copyright notice:
  15. // Permission is hereby granted, free of charge, to any person obtaining a
  16. // copy of this software and associated documentation files (the "Software"),
  17. // to deal in the Software without restriction, including without limitation
  18. // the rights to use, copy, modify, merge, publish, distribute, sublicense,
  19. // and/or sell copies of the Software, and to permit persons to whom the
  20. // Software is furnished to do so, subject to the following conditions:
  21. // The above copyright notice and this permission notice shall be included
  22. // in all copies or substantial portions of the Software.
  23. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  24. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  25. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  26. // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  27. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  28. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  29. // DEALINGS IN THE SOFTWARE.
  30. #ifndef BOOST_GEOMETRY_PROJECTIONS_IMPL_PJ_ELLPS_HPP
  31. #define BOOST_GEOMETRY_PROJECTIONS_IMPL_PJ_ELLPS_HPP
  32. #include <boost/geometry/srs/projections/impl/projects.hpp>
  33. #include <string>
  34. namespace boost { namespace geometry { namespace projections {
  35. namespace detail {
  36. // Originally defined in projects.h
  37. struct pj_ellps_type
  38. {
  39. std::string id; /* ellipse keyword name */
  40. std::string major_v; /* a's value */
  41. std::string ell_n; /* elliptical parameter name */
  42. std::string ell_v; /* elliptical parameter value */
  43. std::string name; /* comments */
  44. };
  45. static const pj_ellps_type pj_ellps[] =
  46. {
  47. {"MERIT", "6378137.0", "rf", "298.257", "MERIT 1983"},
  48. {"SGS85", "6378136.0", "rf", "298.257", "Soviet Geodetic System 85"},
  49. {"GRS80", "6378137.0", "rf", "298.257222101", "GRS 1980(IUGG, 1980)"},
  50. {"IAU76", "6378140.0", "rf", "298.257", "IAU 1976"},
  51. {"airy", "6377563.396", "b", "6356256.910", "Airy 1830"},
  52. {"APL4.9", "6378137.0.", "rf", "298.25", "Appl. Physics. 1965"},
  53. {"NWL9D", "6378145.0.", "rf", "298.25", "Naval Weapons Lab., 1965"},
  54. {"mod_airy", "6377340.189", "b", "6356034.446", "Modified Airy"},
  55. {"andrae", "6377104.43", "rf", "300.0", "Andrae 1876 (Den., Iclnd.)"},
  56. {"aust_SA", "6378160.0", "rf", "298.25", "Australian Natl & S. Amer. 1969"},
  57. {"GRS67", "6378160.0", "rf", "298.2471674270", "GRS 67(IUGG 1967)"},
  58. {"bessel", "6377397.155", "rf", "299.1528128", "Bessel 1841"},
  59. {"bess_nam", "6377483.865", "rf", "299.1528128", "Bessel 1841 (Namibia)"},
  60. {"clrk66", "6378206.4", "b", "6356583.8", "Clarke 1866"},
  61. {"clrk80", "6378249.145", "rf", "293.4663", "Clarke 1880 mod."},
  62. {"clrk80ign", "6378249.2", "rf", "293.4660212936269", "Clarke 1880 (IGN)."},
  63. {"CPM", "6375738.7", "rf", "334.29", "Comm. des Poids et Mesures 1799"},
  64. {"delmbr", "6376428.", "rf", "311.5", "Delambre 1810 (Belgium)"},
  65. {"engelis", "6378136.05", "rf", "298.2566", "Engelis 1985"},
  66. {"evrst30", "6377276.345", "rf", "300.8017", "Everest 1830"},
  67. {"evrst48", "6377304.063", "rf", "300.8017", "Everest 1948"},
  68. {"evrst56", "6377301.243", "rf", "300.8017", "Everest 1956"},
  69. {"evrst69", "6377295.664", "rf", "300.8017", "Everest 1969"},
  70. {"evrstSS", "6377298.556", "rf", "300.8017", "Everest (Sabah & Sarawak)"},
  71. {"fschr60", "6378166.", "rf", "298.3", "Fischer (Mercury Datum) 1960"},
  72. {"fschr60m", "6378155.", "rf", "298.3", "Modified Fischer 1960"},
  73. {"fschr68", "6378150.", "rf", "298.3", "Fischer 1968"},
  74. {"helmert", "6378200.", "rf", "298.3", "Helmert 1906"},
  75. {"hough", "6378270.0", "rf", "297.", "Hough"},
  76. {"intl", "6378388.0", "rf", "297.", "International 1909 (Hayford)"},
  77. {"krass", "6378245.0", "rf", "298.3", "Krassovsky, 1942"},
  78. {"kaula", "6378163.", "rf", "298.24", "Kaula 1961"},
  79. {"lerch", "6378139.", "rf", "298.257", "Lerch 1979"},
  80. {"mprts", "6397300.", "rf", "191.", "Maupertius 1738"},
  81. {"new_intl", "6378157.5", "b", "6356772.2", "New International 1967"},
  82. {"plessis", "6376523.", "b", "6355863.", "Plessis 1817 (France)"},
  83. {"SEasia", "6378155.0", "b", "6356773.3205", "Southeast Asia"},
  84. {"walbeck", "6376896.0", "b", "6355834.8467", "Walbeck"},
  85. {"WGS60", "6378165.0", "rf", "298.3", "WGS 60"},
  86. {"WGS66", "6378145.0", "rf", "298.25", "WGS 66"},
  87. {"WGS72", "6378135.0", "rf", "298.26", "WGS 72"},
  88. {"WGS84", "6378137.0", "rf", "298.257223563", "WGS 84"},
  89. {"sphere", "6370997.0", "b", "6370997.0", "Normal Sphere (r=6370997)"}
  90. };
  91. } // namespace detail
  92. }}} // namespace boost::geometry::projections
  93. #endif // BOOST_GEOMETRY_PROJECTIONS_IMPL_PJ_ELLPS_HPP