aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_horner.c
diff options
context:
space:
mode:
authorThomas Knudsen <thokn@sdfe.dk>2017-10-06 22:21:55 +0200
committerThomas Knudsen <thokn@sdfe.dk>2017-10-06 22:21:55 +0200
commitefa741bafb0f40d4d7b7f9138292f15965ed5d75 (patch)
tree5e4c63127847b2d6bf6d94fb5a8512887a5a4ebf /src/PJ_horner.c
parent03123018ea7090b992430ce8dd4fa6980f04d0d3 (diff)
downloadPROJ-efa741bafb0f40d4d7b7f9138292f15965ed5d75.tar.gz
PROJ-efa741bafb0f40d4d7b7f9138292f15965ed5d75.zip
Switch proj_roundtrip to accept PJ_COORD, rather than PJ_OBS, and make it do proper geodesic distances for forward roundtrips
Diffstat (limited to 'src/PJ_horner.c')
-rw-r--r--src/PJ_horner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PJ_horner.c b/src/PJ_horner.c
index c29cdcd0..d6d2c51c 100644
--- a/src/PJ_horner.c
+++ b/src/PJ_horner.c
@@ -533,7 +533,7 @@ int pj_horner_selftest (void) {
a.coo.uv.u = 878354.8539;
/* Check roundtrip precision for 1 iteration each way, starting in forward direction */
- dist = proj_roundtrip (P, PJ_FWD, 1, a);
+ dist = proj_roundtrip (P, PJ_FWD, 1, a.coo);
if (dist > 0.01)
return 1;
@@ -562,7 +562,7 @@ int pj_horner_selftest (void) {
return 3;
/* Check roundtrip precision for 1 iteration each way */
- dist = proj_roundtrip (P, PJ_FWD, 1, a);
+ dist = proj_roundtrip (P, PJ_FWD, 1, a.coo);
if (dist > 0.01)
return 4;