aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/coordinateoperation.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-04-23 21:41:00 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-04-23 21:46:40 +0200
commit079f53c2dbb93c435ba833c935eab89c610c80ec (patch)
treef1a4a1a1f2ab0522b8cc0cff08f943397c283d3a /src/iso19111/coordinateoperation.cpp
parentcea52c3735ba7442356eb97708ef3f3ea57e60b1 (diff)
downloadPROJ-079f53c2dbb93c435ba833c935eab89c610c80ec.tar.gz
PROJ-079f53c2dbb93c435ba833c935eab89c610c80ec.zip
Fix support of WKT1_GDAL with netCDF rotated pole formulation (#2185)
Contributes to fixing issue raised in https://lists.osgeo.org/pipermail/gdal-dev/2020-April/052003.html
Diffstat (limited to 'src/iso19111/coordinateoperation.cpp')
-rw-r--r--src/iso19111/coordinateoperation.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/iso19111/coordinateoperation.cpp b/src/iso19111/coordinateoperation.cpp
index 9970254d..1e8e0a4c 100644
--- a/src/iso19111/coordinateoperation.cpp
+++ b/src/iso19111/coordinateoperation.cpp
@@ -6344,10 +6344,9 @@ void Conversion::_exportToPROJString(
auto derivedGeographicCRS =
dynamic_cast<const crs::DerivedGeographicCRS *>(horiz);
- if (derivedGeographicCRS) {
- auto baseGeodCRS = derivedGeographicCRS->baseCRS();
+ if (!formatter->getCRSExport() && derivedGeographicCRS) {
formatter->setOmitProjLongLatIfPossible(true);
- baseGeodCRS->_exportToPROJString(formatter);
+ derivedGeographicCRS->addAngularUnitConvertAndAxisSwap(formatter);
formatter->setOmitProjLongLatIfPossible(false);
}
}