PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
|
static |
Where the circ_center_spherical() function fails, we need a fall-back.
The failures happen in short arcs, where the spherical distance between two points is practically the same as the straight-line distance, so our fallback will be to use the straight-line between the two to calculate the new projected center. For proportions far from 0.5 this will be increasingly more incorrect.
Definition at line 192 of file lwgeodetic_tree.c.
References cart2geog(), distance(), geog2cart(), LW_SUCCESS, LWDEBUG, normalize(), POINT3D::x, POINT3D::y, and POINT3D::z.
Referenced by circ_node_internal_new().