PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwgeom_project_spheroid_lwpoint()

LWPOINT * lwgeom_project_spheroid_lwpoint ( const LWPOINT from,
const LWPOINT to,
const SPHEROID spheroid,
double  distance 
)

Calculate the location of a point on a spheroid, give a start point, end point and distance.

Definition at line 2016 of file lwgeodetic.c.

2017{
2018 double azimuth = lwgeom_azumith_spheroid(from, to, spheroid);
2019 LWPOINT *lwp = lwgeom_project_spheroid(to, spheroid, distance, azimuth);
2020 return lwp;
2021}
LWPOINT * lwgeom_project_spheroid(const LWPOINT *r, const SPHEROID *spheroid, double distance, double azimuth)
Calculate a projected point given a source point, a distance and a bearing.
double lwgeom_azumith_spheroid(const LWPOINT *r, const LWPOINT *s, const SPHEROID *spheroid)
Calculate a bearing (azimuth) given a source and destination point.
static double distance(double x1, double y1, double x2, double y2)
Definition lwtree.c:1032

References distance(), lwgeom_azumith_spheroid(), and lwgeom_project_spheroid().

Referenced by geography_project_geography().

Here is the call graph for this function:
Here is the caller graph for this function: