pygeodesy 24.9.29__py2.py3-none-any.whl → 24.10.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.9.29.dist-info → PyGeodesy-24.10.24.dist-info}/METADATA +15 -15
- {PyGeodesy-24.9.29.dist-info → PyGeodesy-24.10.24.dist-info}/RECORD +56 -56
- pygeodesy/__init__.py +20 -19
- pygeodesy/__main__.py +5 -5
- pygeodesy/albers.py +12 -17
- pygeodesy/basics.py +38 -41
- pygeodesy/booleans.py +54 -46
- pygeodesy/cartesianBase.py +2 -2
- pygeodesy/constants.py +20 -16
- pygeodesy/datums.py +3 -3
- pygeodesy/dms.py +250 -270
- pygeodesy/ellipsoidalBase.py +2 -2
- pygeodesy/ellipsoidalBaseDI.py +10 -10
- pygeodesy/ellipsoidalNvector.py +4 -4
- pygeodesy/ellipsoidalVincenty.py +2 -2
- pygeodesy/ellipsoids.py +7 -48
- pygeodesy/elliptic.py +14 -14
- pygeodesy/errors.py +15 -10
- pygeodesy/etm.py +18 -2
- pygeodesy/fmath.py +188 -176
- pygeodesy/formy.py +4 -4
- pygeodesy/fstats.py +54 -56
- pygeodesy/fsums.py +304 -266
- pygeodesy/geodesici.py +43 -40
- pygeodesy/geodesicw.py +3 -3
- pygeodesy/geodesicx/gxarea.py +3 -2
- pygeodesy/geodsolve.py +73 -24
- pygeodesy/geohash.py +2 -2
- pygeodesy/geoids.py +28 -27
- pygeodesy/internals.py +156 -85
- pygeodesy/interns.py +23 -20
- pygeodesy/karney.py +61 -12
- pygeodesy/latlonBase.py +13 -15
- pygeodesy/lazily.py +206 -214
- pygeodesy/mgrs.py +13 -13
- pygeodesy/named.py +11 -10
- pygeodesy/nvectorBase.py +1 -1
- pygeodesy/points.py +2 -2
- pygeodesy/props.py +34 -13
- pygeodesy/rhumb/bases.py +5 -5
- pygeodesy/rhumb/solve.py +7 -8
- pygeodesy/solveBase.py +7 -25
- pygeodesy/sphericalBase.py +20 -23
- pygeodesy/sphericalNvector.py +24 -23
- pygeodesy/sphericalTrigonometry.py +9 -8
- pygeodesy/streprs.py +11 -8
- pygeodesy/trf.py +6 -4
- pygeodesy/triaxials.py +46 -9
- pygeodesy/units.py +4 -3
- pygeodesy/ups.py +6 -6
- pygeodesy/utily.py +2 -2
- pygeodesy/utm.py +2 -2
- pygeodesy/vector3d.py +5 -5
- pygeodesy/vector3dBase.py +4 -5
- {PyGeodesy-24.9.29.dist-info → PyGeodesy-24.10.24.dist-info}/WHEEL +0 -0
- {PyGeodesy-24.9.29.dist-info → PyGeodesy-24.10.24.dist-info}/top_level.txt +0 -0
pygeodesy/latlonBase.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
u'''(INTERNAL) Base class L{LatLonBase} for all elliposiodal, spherical and N-vectorial C{LatLon} classes.
|
|
5
5
|
|
|
6
|
-
@see: I{(C) Chris Veness}' U{latlong<https://www.Movable-Type.co.UK/scripts/latlong.html>},
|
|
6
|
+
@see: I{(C) Chris Veness 2005-2024}' U{latlong<https://www.Movable-Type.co.UK/scripts/latlong.html>},
|
|
7
7
|
U{-ellipsoidal<https://www.Movable-Type.co.UK/scripts/geodesy/docs/latlon-ellipsoidal.js.html>} and
|
|
8
8
|
U{-vectors<https://www.Movable-Type.co.UK/scripts/latlong-vectors.html>} and I{Charles Karney}'s
|
|
9
9
|
U{Rhumb<https://GeographicLib.SourceForge.io/C++/doc/classGeographicLib_1_1Rhumb.html>} and
|
|
@@ -54,7 +54,7 @@ from contextlib import contextmanager
|
|
|
54
54
|
from math import asin, cos, degrees, fabs, radians
|
|
55
55
|
|
|
56
56
|
__all__ = _ALL_LAZY.latlonBase
|
|
57
|
-
__version__ = '24.
|
|
57
|
+
__version__ = '24.10.19'
|
|
58
58
|
|
|
59
59
|
_formy = _MODS.into(formy=__name__)
|
|
60
60
|
|
|
@@ -1250,10 +1250,10 @@ class LatLonBase(_NamedBase):
|
|
|
1250
1250
|
points or as a point and azimuth.
|
|
1251
1251
|
|
|
1252
1252
|
@arg circle: Radius of the circle centered at this location (C{meter}),
|
|
1253
|
-
or a point on the circle (
|
|
1254
|
-
@arg point: The start point of the rhumb line (
|
|
1255
|
-
@arg other: An other point I{on} (
|
|
1256
|
-
(compass C{degrees}) the rhumb line.
|
|
1253
|
+
or a point on the circle (same C{LatLon} class).
|
|
1254
|
+
@arg point: The start point of the rhumb line (same C{LatLon} class).
|
|
1255
|
+
@arg other: An other point I{on} (same C{LatLon} class) or the azimuth
|
|
1256
|
+
I{of} (compass C{degrees}) the rhumb line.
|
|
1257
1257
|
@kwarg height: Optional height for the intersection points (C{meter},
|
|
1258
1258
|
conventionally) or C{None} for interpolated heights.
|
|
1259
1259
|
@kwarg exact_radius_wrap_eps_tol: Optional keyword arguments, see
|
|
@@ -1266,8 +1266,7 @@ class LatLonBase(_NamedBase):
|
|
|
1266
1266
|
|
|
1267
1267
|
@raise IntersectionError: The circle and rhumb line do not intersect.
|
|
1268
1268
|
|
|
1269
|
-
@raise TypeError:
|
|
1270
|
-
or B{C{other}} invalid.
|
|
1269
|
+
@raise TypeError: Invalid B{C{point}}, B{C{circle}} or B{C{other}}.
|
|
1271
1270
|
|
|
1272
1271
|
@raise ValueError: Invalid B{C{circle}}, B{C{other}}, B{C{height}}
|
|
1273
1272
|
or B{C{exact_radius_wrap}}.
|
|
@@ -1297,7 +1296,7 @@ class LatLonBase(_NamedBase):
|
|
|
1297
1296
|
this and an other point.
|
|
1298
1297
|
|
|
1299
1298
|
@arg other: The azimuth I{of} (compass C{degrees}) or an other point
|
|
1300
|
-
I{on} (
|
|
1299
|
+
I{on} (same C{LatLon} class) the rhumb line.
|
|
1301
1300
|
@kwarg exact: Exact C{Rhumb...} to use (C{bool} or C{Rhumb...}), see
|
|
1302
1301
|
method L{Ellipsoid.rhumb_}.
|
|
1303
1302
|
@kwarg radius: Optional earth radius (C{meter}) or earth model
|
|
@@ -1311,7 +1310,7 @@ class LatLonBase(_NamedBase):
|
|
|
1311
1310
|
@return: A C{RhumbLine} instance.
|
|
1312
1311
|
|
|
1313
1312
|
@raise TypeError: Invalid B{C{radius}} or B{C{other}} not C{scalar} nor
|
|
1314
|
-
|
|
1313
|
+
same C{LatLon} class.
|
|
1315
1314
|
|
|
1316
1315
|
@see: Modules L{rhumb.aux_} and L{rhumb.ekx}.
|
|
1317
1316
|
'''
|
|
@@ -1326,7 +1325,7 @@ class LatLonBase(_NamedBase):
|
|
|
1326
1325
|
'''Return the (loxodromic) midpoint on the rhumb line between this and
|
|
1327
1326
|
an other point.
|
|
1328
1327
|
|
|
1329
|
-
@arg other: The other point (
|
|
1328
|
+
@arg other: The other point (same C{LatLon} class).
|
|
1330
1329
|
@kwarg exact: Exact C{Rhumb...} to use (C{bool} or C{Rhumb...}), see
|
|
1331
1330
|
method L{Ellipsoid.rhumb_}.
|
|
1332
1331
|
@kwarg radius: Optional earth radius (C{meter}) or earth model (L{Datum},
|
|
@@ -1341,7 +1340,7 @@ class LatLonBase(_NamedBase):
|
|
|
1341
1340
|
and unroll the B{C{other}} point (C{bool}).
|
|
1342
1341
|
|
|
1343
1342
|
@return: The midpoint at the given B{C{fraction}} along the rhumb line
|
|
1344
|
-
(
|
|
1343
|
+
(same C{LatLon} class).
|
|
1345
1344
|
|
|
1346
1345
|
@raise TypeError: The B{C{other}} point is incompatible or B{C{radius}}
|
|
1347
1346
|
is invalid.
|
|
@@ -1539,9 +1538,8 @@ class LatLonBase(_NamedBase):
|
|
|
1539
1538
|
@kwarg m: Optional unit of the height (C{str}), use C{None} to
|
|
1540
1539
|
exclude height from the returned string.
|
|
1541
1540
|
@kwarg prec_sep_s_D_M_S: Optional C{B{prec}ision}, C{B{sep}arator},
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
L{pygeodesy.lonDMS}.
|
|
1541
|
+
B{C{s_D}}, B{C{s_M}}, B{C{s_S}} and B{C{s_DMS}} keyword
|
|
1542
|
+
arguments, see function L{pygeodesy.toDMS} for details.
|
|
1545
1543
|
|
|
1546
1544
|
@return: This point in the specified C{B{form}at}, etc. (C{str} or
|
|
1547
1545
|
a 2- or 3-tuple C{(lat_str, lon_str[, height_str])} if
|