PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
int spheroid_project | ( | const GEOGRAPHIC_POINT * | r, |
const SPHEROID * | spheroid, | ||
double | distance, | ||
double | azimuth, | ||
GEOGRAPHIC_POINT * | g | ||
) |
Given a location, an azimuth and a distance, computes the location of the projected point.
Based on Vincenty's formula for the geodetic direct problem as described in "Geocentric Datum of Australia Technical Manual", Chapter 4. Tested against: http://mascot.gdbc.gov.bc.ca/mascot/util1b.html and http://www.ga.gov.au/nmd/geodesy/datums/vincenty_direct.jsp
r | - location of first point. |
distance | - distance in meters. |
azimuth | - azimuth in radians. |
Definition at line 364 of file lwspheroid.c.
References SPHEROID::b, distance(), SPHEROID::f, GEOGRAPHIC_POINT::lat, GEOGRAPHIC_POINT::lon, LW_SUCCESS, POW2, r, spheroid_big_a(), spheroid_big_b(), and spheroid_mu2().
Referenced by lwgeom_project_spheroid(), and ptarray_area_spheroid().