diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2022-03-09 20:21:00 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2022-03-09 20:21:00 +0100 |
| commit | 50ca95d01001710921ba36ce5deff712deec3f2e (patch) | |
| tree | cfccd597509c15353479bd802a953ed8377de402 /src | |
| parent | 600e8208eb07add6bc05f7df2582ad805b0278a1 (diff) | |
| download | PROJ-50ca95d01001710921ba36ce5deff712deec3f2e.tar.gz PROJ-50ca95d01001710921ba36ce5deff712deec3f2e.zip | |
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 && |
