Classes and functions to compute various distances.
|
Collins5Tuple
5-Tuple (pointP, pointH, a, b, c) with survey
pointP , auxiliary pointH , each an
instance of pointA 's (sub-)class and triangle
sides a , b and c in
meter , conventionally.
|
|
Frechet
Frechet base class, requires method Frechet.distance to be overloaded.
|
|
Frechet6Tuple
6-Tuple (fd, fi1, fi2, r, n, units) with the
discrete Fréchet distance fd ,
fractional indices fi1 and fi2 as
FIx , the recursion depth r , the number of
distances computed n and the units class or class or name of the distance
units .
|
|
FrechetCosineAndoyerLambert
Compute the Frechet distance based on the
angular distance in radians from function pygeodesy3.cosineAndoyerLambert.
|
|
FrechetCosineForsytheAndoyerLambert
Compute the Frechet distance based on the
angular distance in radians from function pygeodesy3.cosineForsytheAndoyerLambert.
|
|
FrechetCosineLaw
Compute the Frechet distance based on the
angular distance in radians from function pygeodesy3.cosineLaw.
|
|
FrechetDegrees
DEPRECATED, use an other Frechet* class.
|
|
FrechetDistanceTo
Compute the Frechet distance based on the distance
from the point1s' LatLon.distanceTo method,
conventionally in meter .
|
|
FrechetEquirectangular
Compute the Frechet distance based on the
equirectangular distance in radians squared
like function pygeodesy3.equirectangular.
|
|
FrechetError
Fréchet issue.
|
|
FrechetEuclidean
Compute the Frechet distance based on the
Euclidean distance in radians from function pygeodesy3.euclidean.
|
|
FrechetExact
Compute the Frechet distance based on the
angular distance in degrees from method GeodesicExact.Inverse .
|
|
FrechetFlatLocal
Compute the Frechet distance based on the
angular distance in radians squared like
function pygeodesy3.flatLocal_/pygeodesy3.hubeny.
|
|
FrechetFlatPolar
Compute the Frechet distance based on the
angular distance in radians from function flatPolar_.
|
|
FrechetHaversine
Compute the Frechet distance based on the
angular distance in radians from function pygeodesy3.haversine_.
|
|
FrechetHubeny
Compute the Frechet distance based on the
angular distance in radians squared like
function pygeodesy3.flatLocal_/pygeodesy3.hubeny.
|
|
FrechetKarney
Compute the Frechet distance based on the
angular distance in degrees from
Karney's geographiclib geodesic.Geodesic Inverse method.
|
|
FrechetRadians
DEPRECATED, use an other Frechet* class.
|
|
FrechetThomas
Compute the Frechet distance based on the
angular distance in radians from function pygeodesy3.thomas_.
|
|
FrechetVincentys
Compute the Frechet distance based on the
angular distance in radians from function pygeodesy3.vincentys_.
|
|
Hausdorff
Hausdorff base class, requires method Hausdorff.distance to be overloaded.
|
|
Hausdorff6Tuple
6-Tuple (hd, i, j, mn, md, units) with the Hausdorff distance hd , indices
i and j , the total count mn ,
the mean Hausdorff distance md and
the class or name of both distance units .
|
|
HausdorffCosineAndoyerLambert
Compute the Hausdorff distance based on the
angular distance in radians from function pygeodesy3.cosineAndoyerLambert.
|
|
HausdorffCosineForsytheAndoyerLambert
Compute the Hausdorff distance based on the
angular distance in radians from function pygeodesy3.cosineForsytheAndoyerLambert.
|
|
HausdorffCosineLaw
Compute the Hausdorff distance based on the
angular distance in radians from function pygeodesy3.cosineLaw_.
|
|
HausdorffDegrees
Hausdorff base class for distances from
LatLon points in degrees .
|
|
HausdorffDistanceTo
Compute the Hausdorff distance based on the distance
from the points' LatLon.distanceTo method,
conventionally in meter .
|
|
HausdorffEquirectangular
Compute the Hausdorff distance based on the
equirectangular distance in radians
squared like function pygeodesy3.equirectangular_.
|
|
HausdorffError
Hausdorff issue.
|
|
HausdorffEuclidean
Compute the Hausdorff distance based on the
Euclidean distance in radians from
function pygeodesy3.euclidean_.
|
|
HausdorffExact
Compute the Hausdorff distance based on the
angular distance in degrees from method GeodesicExact.Inverse .
|
|
HausdorffFlatLocal
Compute the Hausdorff distance based on the
angular distance in radians squared like
function pygeodesy3.flatLocal_/pygeodesy3.hubeny_.
|
|
HausdorffFlatPolar
Compute the Hausdorff distance based on the
angular distance in radians from function pygeodesy3.flatPolar_.
|
|
HausdorffHaversine
Compute the Hausdorff distance based on the
angular distance in radians from function pygeodesy3.haversine_.
|
|
HausdorffHubeny
Compute the Hausdorff distance based on the
angular distance in radians squared like
function pygeodesy3.flatLocal_/pygeodesy3.hubeny_.
|
|
HausdorffKarney
Compute the Hausdorff distance based on the
angular distance in degrees from
Karney's geographiclib Geodesic Inverse method.
|
|
HausdorffRadians
Hausdorff base class for distances from
LatLon points converted from degrees to
radians .
|
|
HausdorffThomas
Compute the Hausdorff distance based on the
angular distance in radians from function pygeodesy3.thomas_.
|
|
HausdorffVincentys
Compute the Hausdorff distance based on the
angular distance in radians from function pygeodesy3.vincentys_.
|
|
Radical2Tuple
2-Tuple (ratio, xline) of the radical
ratio and radical xline , both
scalar and 0.0 <= ratio <= 1.0
|
|
ResectionError
Error raised for pygeodesy3.distances.resections
issues.
|
|
Survey3Tuple
3-Tuple (PA, PB, PC) with distance from survey point
P to each of the triangle corners A ,
B and C in meter ,
conventionally.
|
|
Tienstra7Tuple
7-Tuple (pointP, A, B, C, a, b, c) with survey
pointP , interior triangle angles A ,
B and C in degrees and
triangle sides a , b and c in
meter , conventionally.
|
|
TriAngle5Tuple
5-Tuple (radA, radB, radC, rIn, area) with the
interior angles at triangle corners A , B
and C in radians , the
InCircle radius rIn aka
inradius in meter and the triangle
area in meter squared,
conventionally.
|
|
TriSide2Tuple
2-Tuple (a, radA) with triangle side a in
meter , conventionally and angle radA at
the opposite triangle corner in radians .
|
|
TriSide4Tuple
4-Tuple (a, b, radC, d) with interior angle
radC at triangle corner C in
radians with the length of triangle sides
a and b and with triangle height
d perpendicular to triangle side c , in
the same units as triangle sides a and b .
|
|
antipode(lat,
lon,
name='')
Return the antipode, the point diametrically opposite to a given
point in degrees . |
|
|
|
antipode_(phi,
lam,
name='')
Return the antipode, the point diametrically opposite to a given
point in radians . |
|
|
|
bearing(lat1,
lon1,
lat2,
lon2,
**final_wrap)
Compute the initial or final bearing (forward or reverse azimuth)
between a (spherical) start and end point. |
|
|
|
bearing_(phi1,
lam1,
phi2,
lam2,
final=False,
wrap=False)
Compute the initial or final bearing (forward or reverse azimuth)
between a (spherical) start and end point. |
|
|
|
cassini(pointA,
pointB,
pointC,
alpha,
beta,
useZ=False,
Clas=None,
**Clas_kwds)
3-Point resection using Cassini's method. |
|
|
|
collins5(pointA,
pointB,
pointC,
alpha,
beta,
useZ=False,
Clas=None,
**Clas_kwds)
3-Point resection using Collins' method. |
|
|
|
compassAngle(lat1,
lon1,
lat2,
lon2,
adjust=True,
wrap=False)
Return the angle from North for the direction vector (lon2 - lon1, lat2 - lat1) between two points. |
|
|
|
cosineAndoyerLambert(lat1,
lon1,
lat2,
lon2,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
wrap=False)
Compute the distance between two (ellipsoidal) points using the Andoyer-Lambert correction of the Law of Cosines formula. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
euclidean(lat1,
lon1,
lat2,
lon2,
radius=6371008.771415,
adjust=True,
wrap=False)
Approximate the Euclidean distance between two
(spherical) points. |
|
|
|
euclidean_(phi2,
phi1,
lam21,
adjust=True)
Approximate the angular Euclidean distance
between two (spherical) points. |
|
|
|
excessAbc_(A,
b,
c)
Compute the spherical excess E of a (spherical)
triangle from two sides and the included (small) angle. |
|
|
|
|
|
|
|
excessKarney(lat1,
lon1,
lat2,
lon2,
radius=6371008.771415,
wrap=False)
Compute the surface area of a (spherical) quadrilateral bounded by a
segment of a great circle, two meridians and the equator using Karney's method. |
|
|
|
excessKarney_(phi2,
phi1,
lam21)
Compute the spherical excess E of a (spherical)
quadrilateral bounded by a segment of a great circle, two meridians
and the equator using Karney's method. |
|
|
|
|
|
excessQuad(lat1,
lon1,
lat2,
lon2,
radius=6371008.771415,
wrap=False)
Compute the surface area of a (spherical) quadrilateral bounded by a
segment of a great circle, two meridians and the equator. |
|
|
|
excessQuad_(phi2,
phi1,
lam21)
Compute the spherical excess E of a (spherical)
quadrilateral bounded by a segment of a great circle, two meridians
and the equator. |
|
|
|
|
|
|
|
|
|
|
|
frechet_(point1s,
point2s,
distance=None,
units='')
Compute the discrete Fréchet distance between two paths, each given as a
set of points. |
|
|
|
hartzell(pov,
los=True,
earth=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
name='',
**LatLon_and_kwds)
Compute the intersection of the earth's surface and a Line-Of-Sight
from a Point-Of-View in space. |
|
|
|
hausdorff_(model,
target,
both=False,
early=True,
seed=None,
units='',
distance=None,
point=<function _point at 0x7fd2088b4dd0>)
Compute the directed or symmetric Hausdorff distance between 2 sets of points with or
without early breaking and random sampling. |
|
|
|
haversine(lat1,
lon1,
lat2,
lon2,
radius=6371008.771415,
wrap=False)
Compute the distance between two (spherical) points using the Haversine formula. |
|
|
|
haversine_(phi2,
phi1,
lam21)
Compute the angular distance between two (spherical) points
using the Haversine formula. |
|
|
|
heightOf(angle,
distance,
radius=6371008.771415)
Determine the height above the (spherical) earth' surface after
traveling along a straight line at a given tilt. |
|
|
|
heightOrthometric(h_ll,
N)
Get the orthometric height H, the height above the
geoid, earth surface. |
|
|
|
horizon(height,
radius=6371008.771415,
refraction=False)
Determine the distance to the horizon from a given altitude above the
(spherical) earth. |
|
|
|
hubeny(lat1,
lon1,
lat2,
lon2,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
scaled=True,
wrap=False)
Compute the distance between two (ellipsoidal) points using the ellipsoidal Earth to plane projection aka Hubeny formula. |
|
|
|
|
|
intersection2(lat1,
lon1,
bearing1,
lat2,
lon2,
bearing2,
datum=None,
wrap=False,
small=100000.0)
Conveniently compute the intersection of two lines each
defined by a (geodetic) point and a bearing from North, using either
... |
|
|
|
intersections2(lat1,
lon1,
radius1,
lat2,
lon2,
radius2,
datum=None,
wrap=False,
small=100000.0)
Conveniently compute the intersections of two circles each
defined by a (geodetic) center point and a radius, using either ... |
|
|
|
isantipode(lat1,
lon1,
lat2,
lon2,
eps=2.220446049250313e-16)
Check whether two points are antipodal, on diametrically
opposite sides of the earth. |
|
|
|
isantipode_(phi1,
lam1,
phi2,
lam2,
eps=2.220446049250313e-16)
Check whether two points are antipodal, on diametrically
opposite sides of the earth. |
|
|
|
isnormal(lat,
lon,
eps=0)
Check whether lat and
lon are within their respective normal
range in degrees . |
|
|
|
isnormal_(phi,
lam,
eps=0)
Check whether phi and
lam are within their respective normal
range in radians . |
|
|
|
latlon2n_xyz(lat,
lon,
name='')
Convert lat-, longitude to n-vector (normal to
the earth's surface) X, Y and Z components. |
|
|
|
n_xyz2latlon(x,
y,
z,
name='')
Convert n-vector components to lat- and longitude in
degrees . |
|
|
|
n_xyz2philam(x,
y,
z,
name='')
Convert n-vector components to lat- and longitude in
radians . |
|
|
|
normal(lat,
lon,
name='')
Normalize a lat- and longitude pair in degrees . |
|
|
|
normal_(phi,
lam,
name='')
Normalize a lat- and longitude pair in radians . |
|
|
|
opposing(bearing1,
bearing2,
margin=90.0)
Compare the direction of two bearings given in degrees . |
|
|
|
opposing_(radians1,
radians2,
margin=1.5707963267948966)
Compare the direction of two bearings given in radians . |
|
|
|
philam2n_xyz(phi,
lam,
name='')
Convert lat-, longitude to n-vector (normal to
the earth's surface) X, Y and Z components. |
|
|
|
pierlot(point1,
point2,
point3,
alpha12,
alpha23,
useZ=False,
eps=2.220446049250313e-16,
Clas=None,
**Clas_kwds)
3-Point resection using Pierlot's method ToTal with
approximate limits for the (pseudo-)singularities. |
|
|
|
pierlotx(point1,
point2,
point3,
alpha1,
alpha2,
alpha3,
useZ=False,
Clas=None,
**Clas_kwds)
3-Point resection using Pierlot's method ToTal with
exact limits for the (pseudo-)singularities. |
|
|
|
|
|
|
|
|
|
thomas(lat1,
lon1,
lat2,
lon2,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
wrap=False)
Compute the distance between two (ellipsoidal) points using Thomas' formula. |
|
|
|
thomas_(phi2,
phi1,
lam21,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... )
Compute the angular distance between two (ellipsoidal) points
using Thomas' formula. |
|
|
|
tienstra7(pointA,
pointB,
pointC,
alpha,
beta=None,
gamma=None,
useZ=False,
Clas=None,
**Clas_kwds)
3-Point resection using Tienstra's formula. |
|
|
|
triAngle(a,
b,
c)
Compute one angle of a triangle. |
|
|
|
triAngle5(a,
b,
c)
Compute the angles of a triangle. |
|
|
|
triArea(a,
b,
c)
Compute the area of a triangle using Heron's stable formula. |
|
|
|
triSide(a,
b,
radC)
Compute one side of a triangle. |
|
|
|
triSide2(b,
c,
radB)
Compute a side and its opposite angle of a triangle. |
|
|
|
triSide4(radA,
radB,
c)
Compute two sides and the height of a triangle. |
|
|
|
vincentys(lat1,
lon1,
lat2,
lon2,
radius=6371008.771415,
wrap=False)
Compute the distance between two (spherical) points using Vincenty's spherical formula. |
|
|
|
vincentys_(phi2,
phi1,
lam21)
Compute the angular distance between two (spherical) points
using Vincenty's spherical formula. |
|
|
|
|