diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2019-12-15 20:50:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-15 20:50:15 +0100 |
| commit | e5526bca37a5b88f36645fa8a6ff9cf3fd31ecfa (patch) | |
| tree | 038a65e379d4c23c5f0af3572aec05378c29710c /src/apps/proj.cpp | |
| parent | 6125d3b5a488d6dbaa536d0bde9125a63c1dc91a (diff) | |
| parent | 2c3a7c8bcc711cf34b79885edbf1e5dccacc5757 (diff) | |
| download | PROJ-e5526bca37a5b88f36645fa8a6ff9cf3fd31ecfa.tar.gz PROJ-e5526bca37a5b88f36645fa8a6ff9cf3fd31ecfa.zip | |
Merge pull request #1783 from rouault/restore_ob_tran_to_meter_compat_with_pj_transform
ob_tran: restore traditional handling of +to_meter with pj_transform() and proj utility (fixes #1782)
Diffstat (limited to 'src/apps/proj.cpp')
| -rw-r--r-- | src/apps/proj.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/apps/proj.cpp b/src/apps/proj.cpp index 7fe08023..09c8a81d 100644 --- a/src/apps/proj.cpp +++ b/src/apps/proj.cpp @@ -490,6 +490,14 @@ int main(int argc, char **argv) { exit(0); } + // Ugly hack. See https://github.com/OSGeo/PROJ/issues/1782 + if( Proj->right == PJ_IO_UNITS_WHATEVER && Proj->descr && + strncmp(Proj->descr, "General Oblique Transformation", + strlen("General Oblique Transformation")) == 0 ) + { + Proj->right = PJ_IO_UNITS_PROJECTED; + } + if (inverse) { if (!Proj->inv) emess(3,"inverse projection not available"); |
