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.
- PyGeodesy-24.3.24.dist-info/METADATA +272 -0
- PyGeodesy-24.3.24.dist-info/RECORD +115 -0
- PyGeodesy-24.3.24.dist-info/WHEEL +6 -0
- PyGeodesy-24.3.24.dist-info/top_level.txt +1 -0
- pygeodesy/LICENSE +21 -0
- pygeodesy/__init__.py +615 -0
- pygeodesy/__main__.py +103 -0
- pygeodesy/albers.py +867 -0
- pygeodesy/auxilats/_CX_4.py +218 -0
- pygeodesy/auxilats/_CX_6.py +314 -0
- pygeodesy/auxilats/_CX_8.py +475 -0
- pygeodesy/auxilats/__init__.py +54 -0
- pygeodesy/auxilats/__main__.py +86 -0
- pygeodesy/auxilats/auxAngle.py +548 -0
- pygeodesy/auxilats/auxDLat.py +302 -0
- pygeodesy/auxilats/auxDST.py +296 -0
- pygeodesy/auxilats/auxLat.py +848 -0
- pygeodesy/auxilats/auxily.py +272 -0
- pygeodesy/azimuthal.py +1150 -0
- pygeodesy/basics.py +892 -0
- pygeodesy/booleans.py +2031 -0
- pygeodesy/cartesianBase.py +1062 -0
- pygeodesy/clipy.py +704 -0
- pygeodesy/constants.py +516 -0
- pygeodesy/css.py +660 -0
- pygeodesy/datums.py +752 -0
- pygeodesy/deprecated/__init__.py +61 -0
- pygeodesy/deprecated/bases.py +40 -0
- pygeodesy/deprecated/classes.py +262 -0
- pygeodesy/deprecated/consterns.py +54 -0
- pygeodesy/deprecated/datum.py +40 -0
- pygeodesy/deprecated/functions.py +375 -0
- pygeodesy/deprecated/nvector.py +48 -0
- pygeodesy/deprecated/rhumbBase.py +32 -0
- pygeodesy/deprecated/rhumbaux.py +33 -0
- pygeodesy/deprecated/rhumbsolve.py +33 -0
- pygeodesy/deprecated/rhumbx.py +33 -0
- pygeodesy/dms.py +986 -0
- pygeodesy/ecef.py +1348 -0
- pygeodesy/elevations.py +279 -0
- pygeodesy/ellipsoidalBase.py +1224 -0
- pygeodesy/ellipsoidalBaseDI.py +913 -0
- pygeodesy/ellipsoidalExact.py +343 -0
- pygeodesy/ellipsoidalGeodSolve.py +343 -0
- pygeodesy/ellipsoidalKarney.py +403 -0
- pygeodesy/ellipsoidalNvector.py +685 -0
- pygeodesy/ellipsoidalVincenty.py +590 -0
- pygeodesy/ellipsoids.py +2476 -0
- pygeodesy/elliptic.py +1198 -0
- pygeodesy/epsg.py +243 -0
- pygeodesy/errors.py +804 -0
- pygeodesy/etm.py +1190 -0
- pygeodesy/fmath.py +1013 -0
- pygeodesy/formy.py +1818 -0
- pygeodesy/frechet.py +865 -0
- pygeodesy/fstats.py +760 -0
- pygeodesy/fsums.py +1898 -0
- pygeodesy/gars.py +358 -0
- pygeodesy/geodesicw.py +581 -0
- pygeodesy/geodesicx/_C4_24.py +1699 -0
- pygeodesy/geodesicx/_C4_27.py +2395 -0
- pygeodesy/geodesicx/_C4_30.py +3301 -0
- pygeodesy/geodesicx/__init__.py +48 -0
- pygeodesy/geodesicx/__main__.py +91 -0
- pygeodesy/geodesicx/gx.py +1382 -0
- pygeodesy/geodesicx/gxarea.py +535 -0
- pygeodesy/geodesicx/gxbases.py +154 -0
- pygeodesy/geodesicx/gxline.py +669 -0
- pygeodesy/geodsolve.py +426 -0
- pygeodesy/geohash.py +914 -0
- pygeodesy/geoids.py +1884 -0
- pygeodesy/hausdorff.py +892 -0
- pygeodesy/heights.py +1155 -0
- pygeodesy/interns.py +687 -0
- pygeodesy/iters.py +545 -0
- pygeodesy/karney.py +919 -0
- pygeodesy/ktm.py +633 -0
- pygeodesy/latlonBase.py +1766 -0
- pygeodesy/lazily.py +960 -0
- pygeodesy/lcc.py +684 -0
- pygeodesy/ltp.py +1107 -0
- pygeodesy/ltpTuples.py +1563 -0
- pygeodesy/mgrs.py +721 -0
- pygeodesy/named.py +1324 -0
- pygeodesy/namedTuples.py +683 -0
- pygeodesy/nvectorBase.py +695 -0
- pygeodesy/osgr.py +781 -0
- pygeodesy/points.py +1686 -0
- pygeodesy/props.py +628 -0
- pygeodesy/resections.py +1048 -0
- pygeodesy/rhumb/__init__.py +46 -0
- pygeodesy/rhumb/aux_.py +397 -0
- pygeodesy/rhumb/bases.py +1148 -0
- pygeodesy/rhumb/ekx.py +563 -0
- pygeodesy/rhumb/solve.py +572 -0
- pygeodesy/simplify.py +647 -0
- pygeodesy/solveBase.py +472 -0
- pygeodesy/sphericalBase.py +724 -0
- pygeodesy/sphericalNvector.py +1264 -0
- pygeodesy/sphericalTrigonometry.py +1447 -0
- pygeodesy/streprs.py +627 -0
- pygeodesy/trf.py +2079 -0
- pygeodesy/triaxials.py +1484 -0
- pygeodesy/units.py +969 -0
- pygeodesy/unitsBase.py +349 -0
- pygeodesy/ups.py +538 -0
- pygeodesy/utily.py +1231 -0
- pygeodesy/utm.py +762 -0
- pygeodesy/utmups.py +318 -0
- pygeodesy/utmupsBase.py +517 -0
- pygeodesy/vector2d.py +785 -0
- pygeodesy/vector3d.py +968 -0
- pygeodesy/vector3dBase.py +1049 -0
- pygeodesy/webmercator.py +383 -0
- 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)
|