aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/coordinateoperation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/iso19111/coordinateoperation.cpp')
-rw-r--r--src/iso19111/coordinateoperation.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/iso19111/coordinateoperation.cpp b/src/iso19111/coordinateoperation.cpp
index 50a6a003..1abb74b3 100644
--- a/src/iso19111/coordinateoperation.cpp
+++ b/src/iso19111/coordinateoperation.cpp
@@ -7704,7 +7704,7 @@ void SingleOperation::exportTransformationToWKT(
formatter->addQuotedString(nameStr());
- if (isWKT2 && formatter->use2018Keywords()) {
+ if (formatter->use2018Keywords()) {
const auto &version = operationVersion();
if (version.has_value()) {
formatter->startNode(io::WKTConstants::VERSION, false);
@@ -7719,10 +7719,8 @@ void SingleOperation::exportTransformationToWKT(
method()->_exportToWKT(formatter);
- const MethodMapping *mapping =
- !isWKT2 ? getMapping(method().get()) : nullptr;
for (const auto &paramValue : parameterValues()) {
- paramValue->_exportToWKT(formatter, mapping);
+ paramValue->_exportToWKT(formatter, nullptr);
}
if (!formatter->abridgedTransformation()) {
@@ -9163,6 +9161,7 @@ void ConcatenatedOperation::fixStepsDirection(
op = op->inverse();
}
} else if (i + 1 < operationsInOut.size()) {
+ /* coverity[copy_paste_error] */
l_targetCRS = operationsInOut[i + 1]->sourceCRS();
if (l_targetCRS) {
op->setCRSs(concatOpSourceCRS, NN_NO_CHECK(l_targetCRS),