PostGIS
3.0.6dev-r@@SVN_REVISION@@
|
double spheroid_distance | ( | const GEOGRAPHIC_POINT * | a, |
const GEOGRAPHIC_POINT * | b, | ||
const SPHEROID * | spheroid | ||
) |
Computes the shortest distance along the surface of the spheroid between two points, using the inverse geodesic problem from GeographicLib (Karney 2013).
a | - location of first point |
b | - location of second point |
s | - spheroid to calculate on |
Definition at line 79 of file lwspheroid.c.
References SPHEROID::a, SPHEROID::f, geographic_point_equals(), GEOGRAPHIC_POINT::lat, and GEOGRAPHIC_POINT::lon.
Referenced by circ_tree_distance_tree(), ptarray_distance_spheroid(), ptarray_length_spheroid(), and test_spheroid_distance().