diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-12-10 14:36:07 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-12-10 15:25:02 +0100 |
| commit | 2c3a7c8bcc711cf34b79885edbf1e5dccacc5757 (patch) | |
| tree | 62fad710df23f50d8c15ad7625e6f814488078af /src/apps/proj.cpp | |
| parent | 29474bd7fdac013841a4795e93f714bba7791c56 (diff) | |
| download | PROJ-2c3a7c8bcc711cf34b79885edbf1e5dccacc5757.tar.gz PROJ-2c3a7c8bcc711cf34b79885edbf1e5dccacc5757.zip | |
ob_tran: restore traditional handling of +to_meter with pj_transform() and proj utility (fixes #1782)
Fixes side-effect of https://github.com/OSGeo/PROJ/issues/1525 that went in 6.1.1
The correction is horribly hacky. Sorry...
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"); |
