aboutsummaryrefslogtreecommitdiff
path: root/src/4D_api.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-09-12 17:57:45 +0200
committerGitHub <noreply@github.com>2019-09-12 17:57:45 +0200
commitf2d44f3a2eacbdbf92212b9fe3c57549f4d30af4 (patch)
tree5221d11da8de4d6254f81e40305a7c9c366cd1cd /src/4D_api.cpp
parent947b4ae116e192a64cb9a1f752e88483223f9f28 (diff)
parentc87d0016e4c60f8c9cb2b909e114afccc51c7f23 (diff)
downloadPROJ-f2d44f3a2eacbdbf92212b9fe3c57549f4d30af4.tar.gz
PROJ-f2d44f3a2eacbdbf92212b9fe3c57549f4d30af4.zip
Merge pull request #1607 from OSGeo/backport-1604-to-6.2
[Backport 6.2] proj_trans_generic(): properly set coordinate time to HUGE_VAL when no value is passed to the function
Diffstat (limited to 'src/4D_api.cpp')
-rw-r--r--src/4D_api.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/4D_api.cpp b/src/4D_api.cpp
index ffef8d81..70eaac6a 100644
--- a/src/4D_api.cpp
+++ b/src/4D_api.cpp
@@ -362,6 +362,7 @@ size_t proj_trans_generic (
PJ_COORD coord = {{0,0,0,0}};
size_t i, nmin;
double null_broadcast = 0;
+ double invalid_time = HUGE_VAL;
if (nullptr==P)
return 0;
@@ -379,7 +380,7 @@ size_t proj_trans_generic (
if (0==nx) x = &null_broadcast;
if (0==ny) y = &null_broadcast;
if (0==nz) z = &null_broadcast;
- if (0==nt) t = &null_broadcast;
+ if (0==nt) t = &invalid_time;
/* nothing to do? */
if (0==nx+ny+nz+nt)