pygeodesy 24.3.24__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. PyGeodesy-24.3.24.dist-info/METADATA +272 -0
  2. PyGeodesy-24.3.24.dist-info/RECORD +115 -0
  3. PyGeodesy-24.3.24.dist-info/WHEEL +6 -0
  4. PyGeodesy-24.3.24.dist-info/top_level.txt +1 -0
  5. pygeodesy/LICENSE +21 -0
  6. pygeodesy/__init__.py +615 -0
  7. pygeodesy/__main__.py +103 -0
  8. pygeodesy/albers.py +867 -0
  9. pygeodesy/auxilats/_CX_4.py +218 -0
  10. pygeodesy/auxilats/_CX_6.py +314 -0
  11. pygeodesy/auxilats/_CX_8.py +475 -0
  12. pygeodesy/auxilats/__init__.py +54 -0
  13. pygeodesy/auxilats/__main__.py +86 -0
  14. pygeodesy/auxilats/auxAngle.py +548 -0
  15. pygeodesy/auxilats/auxDLat.py +302 -0
  16. pygeodesy/auxilats/auxDST.py +296 -0
  17. pygeodesy/auxilats/auxLat.py +848 -0
  18. pygeodesy/auxilats/auxily.py +272 -0
  19. pygeodesy/azimuthal.py +1150 -0
  20. pygeodesy/basics.py +892 -0
  21. pygeodesy/booleans.py +2031 -0
  22. pygeodesy/cartesianBase.py +1062 -0
  23. pygeodesy/clipy.py +704 -0
  24. pygeodesy/constants.py +516 -0
  25. pygeodesy/css.py +660 -0
  26. pygeodesy/datums.py +752 -0
  27. pygeodesy/deprecated/__init__.py +61 -0
  28. pygeodesy/deprecated/bases.py +40 -0
  29. pygeodesy/deprecated/classes.py +262 -0
  30. pygeodesy/deprecated/consterns.py +54 -0
  31. pygeodesy/deprecated/datum.py +40 -0
  32. pygeodesy/deprecated/functions.py +375 -0
  33. pygeodesy/deprecated/nvector.py +48 -0
  34. pygeodesy/deprecated/rhumbBase.py +32 -0
  35. pygeodesy/deprecated/rhumbaux.py +33 -0
  36. pygeodesy/deprecated/rhumbsolve.py +33 -0
  37. pygeodesy/deprecated/rhumbx.py +33 -0
  38. pygeodesy/dms.py +986 -0
  39. pygeodesy/ecef.py +1348 -0
  40. pygeodesy/elevations.py +279 -0
  41. pygeodesy/ellipsoidalBase.py +1224 -0
  42. pygeodesy/ellipsoidalBaseDI.py +913 -0
  43. pygeodesy/ellipsoidalExact.py +343 -0
  44. pygeodesy/ellipsoidalGeodSolve.py +343 -0
  45. pygeodesy/ellipsoidalKarney.py +403 -0
  46. pygeodesy/ellipsoidalNvector.py +685 -0
  47. pygeodesy/ellipsoidalVincenty.py +590 -0
  48. pygeodesy/ellipsoids.py +2476 -0
  49. pygeodesy/elliptic.py +1198 -0
  50. pygeodesy/epsg.py +243 -0
  51. pygeodesy/errors.py +804 -0
  52. pygeodesy/etm.py +1190 -0
  53. pygeodesy/fmath.py +1013 -0
  54. pygeodesy/formy.py +1818 -0
  55. pygeodesy/frechet.py +865 -0
  56. pygeodesy/fstats.py +760 -0
  57. pygeodesy/fsums.py +1898 -0
  58. pygeodesy/gars.py +358 -0
  59. pygeodesy/geodesicw.py +581 -0
  60. pygeodesy/geodesicx/_C4_24.py +1699 -0
  61. pygeodesy/geodesicx/_C4_27.py +2395 -0
  62. pygeodesy/geodesicx/_C4_30.py +3301 -0
  63. pygeodesy/geodesicx/__init__.py +48 -0
  64. pygeodesy/geodesicx/__main__.py +91 -0
  65. pygeodesy/geodesicx/gx.py +1382 -0
  66. pygeodesy/geodesicx/gxarea.py +535 -0
  67. pygeodesy/geodesicx/gxbases.py +154 -0
  68. pygeodesy/geodesicx/gxline.py +669 -0
  69. pygeodesy/geodsolve.py +426 -0
  70. pygeodesy/geohash.py +914 -0
  71. pygeodesy/geoids.py +1884 -0
  72. pygeodesy/hausdorff.py +892 -0
  73. pygeodesy/heights.py +1155 -0
  74. pygeodesy/interns.py +687 -0
  75. pygeodesy/iters.py +545 -0
  76. pygeodesy/karney.py +919 -0
  77. pygeodesy/ktm.py +633 -0
  78. pygeodesy/latlonBase.py +1766 -0
  79. pygeodesy/lazily.py +960 -0
  80. pygeodesy/lcc.py +684 -0
  81. pygeodesy/ltp.py +1107 -0
  82. pygeodesy/ltpTuples.py +1563 -0
  83. pygeodesy/mgrs.py +721 -0
  84. pygeodesy/named.py +1324 -0
  85. pygeodesy/namedTuples.py +683 -0
  86. pygeodesy/nvectorBase.py +695 -0
  87. pygeodesy/osgr.py +781 -0
  88. pygeodesy/points.py +1686 -0
  89. pygeodesy/props.py +628 -0
  90. pygeodesy/resections.py +1048 -0
  91. pygeodesy/rhumb/__init__.py +46 -0
  92. pygeodesy/rhumb/aux_.py +397 -0
  93. pygeodesy/rhumb/bases.py +1148 -0
  94. pygeodesy/rhumb/ekx.py +563 -0
  95. pygeodesy/rhumb/solve.py +572 -0
  96. pygeodesy/simplify.py +647 -0
  97. pygeodesy/solveBase.py +472 -0
  98. pygeodesy/sphericalBase.py +724 -0
  99. pygeodesy/sphericalNvector.py +1264 -0
  100. pygeodesy/sphericalTrigonometry.py +1447 -0
  101. pygeodesy/streprs.py +627 -0
  102. pygeodesy/trf.py +2079 -0
  103. pygeodesy/triaxials.py +1484 -0
  104. pygeodesy/units.py +969 -0
  105. pygeodesy/unitsBase.py +349 -0
  106. pygeodesy/ups.py +538 -0
  107. pygeodesy/utily.py +1231 -0
  108. pygeodesy/utm.py +762 -0
  109. pygeodesy/utmups.py +318 -0
  110. pygeodesy/utmupsBase.py +517 -0
  111. pygeodesy/vector2d.py +785 -0
  112. pygeodesy/vector3d.py +968 -0
  113. pygeodesy/vector3dBase.py +1049 -0
  114. pygeodesy/webmercator.py +383 -0
  115. pygeodesy/wgrs.py +439 -0
@@ -0,0 +1,48 @@
1
+
2
+ # -*- coding: utf-8 -*-
3
+
4
+ u'''A pure Python version of I{Karney}'s C++ classes U{GeodesicExact
5
+ <https://GeographicLib.SourceForge.io/C++/classGeographicLib_1_1GeodesicExact.html>}
6
+ and U{GeodesicLineExact
7
+ <https://geographiclib.sourceforge.io/C++/doc/classGeographicLib_1_1GeodesicLine.html>}.
8
+
9
+ For more details, see the C++ U{GeographicLib<https://GeographicLib.SourceForge.io/C++/doc/index.html>}
10
+ documentation, especially the U{Class List<https://GeographicLib.SourceForge.io/C++/doc/annotated.html>}
11
+ and the background information at U{Geodesics on an ellipsoid of revolution
12
+ <https://GeographicLib.SourceForge.io/C++/doc/geodesic.html#geodseries>}.
13
+
14
+ Also, compare C{GeodesicExact} and C{GeodesicLineExact} to I{standard} classes C{Geodesic}
15
+ respectively C{GeodesicLine} from I{Karney}'s Python implementation U{geographiclib
16
+ <https://GeographicLib.SourceForge.io/C++/doc/other.html#python>}, see module
17
+ L{pygeodesy.karney}.
18
+ '''
19
+
20
+ from pygeodesy.geodesicx.gx import GeodesicExact, GeodesicLineExact # PYCHOK exported
21
+ from pygeodesy.geodesicx.gxarea import GeodesicAreaExact, PolygonArea # PYCHOK exported
22
+ from pygeodesy.karney import Caps, GeodesicError
23
+ from pygeodesy.lazily import _ALL_DOCS, _ALL_LAZY
24
+
25
+ __all__ = _ALL_LAZY.geodesicx + _ALL_DOCS(Caps, GeodesicError)
26
+ __version__ = '23.12.03'
27
+
28
+ # **) MIT License
29
+ #
30
+ # Copyright (C) 2016-2024 -- mrJean1 at Gmail -- All Rights Reserved.
31
+ #
32
+ # Permission is hereby granted, free of charge, to any person obtaining a
33
+ # copy of this software and associated documentation files (the "Software"),
34
+ # to deal in the Software without restriction, including without limitation
35
+ # the rights to use, copy, modify, merge, publish, distribute, sublicense,
36
+ # and/or sell copies of the Software, and to permit persons to whom the
37
+ # Software is furnished to do so, subject to the following conditions:
38
+ #
39
+ # The above copyright notice and this permission notice shall be included
40
+ # in all copies or substantial portions of the Software.
41
+ #
42
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
43
+ # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
44
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
45
+ # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
46
+ # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
47
+ # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
48
+ # OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,91 @@
1
+
2
+ # -*- coding: utf-8 -*-
3
+
4
+ u'''Print L{geodesicx} version, etc. using C{python -m pygeodesy.geodesicx}.
5
+ '''
6
+
7
+ __all__ = ()
8
+ __version__ = '23.06.19'
9
+
10
+
11
+ def _C4stats(nC4=None): # PYCHOK no cover
12
+ '''(INTERNAL) Get the C{C4} stats.
13
+ '''
14
+ from pygeodesy import GeodesicExact, geodesicx
15
+
16
+ gX = GeodesicExact(C4order=nC4)
17
+ cs = geodesicx.gx._C4coeffs(gX.C4order)
18
+ ss = set(cs) # without duplicates
19
+ pc = '%.1f%%' % (len(ss) * 100.0 / len(cs))
20
+ cx = gX._C4x
21
+ return dict(C4order=gX.C4order, C4len=len(cs), C4set=len(ss), C4set_len=pc, C4x=len(cx))
22
+
23
+
24
+ def _main(): # PYCHOK no cover
25
+
26
+ import os.path as os_path
27
+
28
+ try:
29
+ from pygeodesy import geodesicx as _gx, GeodesicError, \
30
+ GeodesicSolve, printf, pygeodesy_abspath
31
+ from pygeodesy.interns import _COMMASPACE_, _DOT_, _pythonarchine, \
32
+ _SPACE_, _usage, _version_
33
+ from pygeodesy.streprs import Fmt
34
+
35
+ def _dot_attr(name, value):
36
+ return Fmt.DOT(Fmt.EQUAL(name, value))
37
+
38
+ s = tuple(sorted(_C4stats().items()))
39
+ p = [_dot_attr(*t) for t in (((_version_, _gx.__version__),) + s)]
40
+
41
+ def _name_version(pkg):
42
+ return _SPACE_(pkg.__name__, pkg.__version__)
43
+
44
+ v = _pythonarchine()
45
+ try:
46
+ import geographiclib
47
+ v.append(_name_version(geographiclib))
48
+ except ImportError:
49
+ pass
50
+ try:
51
+ g = GeodesicSolve()
52
+ v.append(g.version)
53
+ except GeodesicError:
54
+ pass
55
+
56
+ g = _gx.__name__
57
+ x = os_path.basename(pygeodesy_abspath)
58
+ if not g.startswith(x):
59
+ g = _DOT_(x, g)
60
+ printf('%s%s (%s)', g, _COMMASPACE_.join(p), _COMMASPACE_.join(v))
61
+
62
+ except ImportError:
63
+ printf(_usage(__file__))
64
+
65
+
66
+ _main()
67
+
68
+ # **) MIT License
69
+ #
70
+ # Copyright (C) 2016-2024 -- mrJean1 at Gmail -- All Rights Reserved.
71
+ #
72
+ # Permission is hereby granted, free of charge, to any person obtaining a
73
+ # copy of this software and associated documentation files (the "Software"),
74
+ # to deal in the Software without restriction, including without limitation
75
+ # the rights to use, copy, modify, merge, publish, distribute, sublicense,
76
+ # and/or sell copies of the Software, and to permit persons to whom the
77
+ # Software is furnished to do so, subject to the following conditions:
78
+ #
79
+ # The above copyright notice and this permission notice shall be included
80
+ # in all copies or substantial portions of the Software.
81
+ #
82
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
83
+ # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
84
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
85
+ # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
86
+ # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
87
+ # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
88
+ # OTHER DEALINGS IN THE SOFTWARE.
89
+
90
+ # % python3 -m pygeodesy.geodesicx
91
+ # pygeodesy.geodesicx.version=21.05.30, .C4Order=None, .C4len=5425, .C4set=5107, .C4set100=94, .C4x=465 (Python 3.9.5, 64bit, geographiclib 1.52)