diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2022-03-10 10:48:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-10 10:48:39 +0100 |
| commit | 6d00538de1a1d7da04619fdebfcbd5a16ba07a9f (patch) | |
| tree | 50ba09773b8ef6d03df9534d0e71863e4c052702 /src | |
| parent | 15f1e40597b919aa496c09d0c9df821143d9a824 (diff) | |
| parent | 50ca95d01001710921ba36ce5deff712deec3f2e (diff) | |
| download | PROJ-6d00538de1a1d7da04619fdebfcbd5a16ba07a9f.tar.gz PROJ-6d00538de1a1d7da04619fdebfcbd5a16ba07a9f.zip | |
Merge pull request #3108 from rouault/fix_3095
createOperations(): fix issue in transformation northing,easting projected CRS -> +proj=longlat +lon_wrap (fixes #3095)
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/crs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/iso19111/crs.cpp b/src/iso19111/crs.cpp index 881aec0b..e4b8094f 100644 --- a/src/iso19111/crs.cpp +++ b/src/iso19111/crs.cpp @@ -4404,7 +4404,8 @@ void ProjectedCRS::addUnitConvertAndAxisSwap(io::PROJStringFormatter *formatter, formatter->addParam("units", "m"); } - if (!axisSpecFound && !formatter->getCRSExport()) { + if (!axisSpecFound && + (!formatter->getCRSExport() || formatter->getLegacyCRSToCRSContext())) { const auto &dir0 = axisList[0]->direction(); const auto &dir1 = axisList[1]->direction(); if (!(&dir0 == &cs::AxisDirection::EAST && |
