diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-09-12 10:30:26 +0000 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-09-12 10:30:26 +0000 |
| commit | c87d0016e4c60f8c9cb2b909e114afccc51c7f23 (patch) | |
| tree | 8d2ec1c74aeb1542bf6546b1542bf4facd19470c /src/4D_api.cpp | |
| parent | 9e1e008830f947f19d19e9608a4872c40b181763 (diff) | |
| download | PROJ-c87d0016e4c60f8c9cb2b909e114afccc51c7f23.tar.gz PROJ-c87d0016e4c60f8c9cb2b909e114afccc51c7f23.zip | |
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.cpp | 3 |
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) |
