File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3730,9 +3730,11 @@ bool SingleOperation::exportToPROJStringGeneric(
3730
3730
concat (" Can apply " , methodName, " only to GeographicCRS" ));
3731
3731
}
3732
3732
3733
- formatter->startInversion ();
3734
- sourceCRSGeog->addAngularUnitConvertAndAxisSwap (formatter);
3735
- formatter->stopInversion ();
3733
+ if (!formatter->omitHorizontalConversionInVertTransformation ()) {
3734
+ formatter->startInversion ();
3735
+ sourceCRSGeog->addAngularUnitConvertAndAxisSwap (formatter);
3736
+ formatter->stopInversion ();
3737
+ }
3736
3738
3737
3739
if (isMethodInverseOf) {
3738
3740
formatter->startInversion ();
@@ -3753,7 +3755,9 @@ bool SingleOperation::exportToPROJStringGeneric(
3753
3755
formatter->stopInversion ();
3754
3756
}
3755
3757
3756
- targetCRSGeog->addAngularUnitConvertAndAxisSwap (formatter);
3758
+ if (!formatter->omitHorizontalConversionInVertTransformation ()) {
3759
+ targetCRSGeog->addAngularUnitConvertAndAxisSwap (formatter);
3760
+ }
3757
3761
3758
3762
return true ;
3759
3763
}
You can’t perform that action at this time.
0 commit comments