diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-05-03 20:54:42 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-05-03 20:54:42 +0200 |
| commit | c5346c7c25ca9fe281df39eaeefebc1aa4009266 (patch) | |
| tree | 70dcbafe49373a1791dbc03e8830a2892b076221 /src/apps/cs2cs.cpp | |
| parent | 768f76487f4d7486f6e07c2012d4a767f0584d07 (diff) | |
| download | PROJ-c5346c7c25ca9fe281df39eaeefebc1aa4009266.tar.gz PROJ-c5346c7c25ca9fe281df39eaeefebc1aa4009266.zip | |
cs2cs: set time value to HUGE_VAL if not explicitly specified
Diffstat (limited to 'src/apps/cs2cs.cpp')
| -rw-r--r-- | src/apps/cs2cs.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apps/cs2cs.cpp b/src/apps/cs2cs.cpp index 40b0d584..20e5e73c 100644 --- a/src/apps/cs2cs.cpp +++ b/src/apps/cs2cs.cpp @@ -123,6 +123,8 @@ static void process(FILE *fid) /* is forward verbatim from the input. */ char *before_time = s; double t = strtod(s, &s); + if( s == before_time ) + t = HUGE_VAL; s = before_time; if (data.v == HUGE_VAL) |
