From e6a992b59985e51e2d205fe56c1abecc4a10ffd0 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 23 Oct 2020 14:17:13 +0200 Subject: AuthorityFactory::createCoordinateOperation(): correctly compute accuracy of concatenated operation when there is a conversion step --- src/iso19111/factory.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/iso19111/factory.cpp') diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp index 211eb586..8d9742d5 100644 --- a/src/iso19111/factory.cpp +++ b/src/iso19111/factory.cpp @@ -3556,6 +3556,12 @@ operation::CoordinateOperationNNPtr AuthorityFactory::createCoordinateOperation( } else { totalAcc += acc; } + } else if (dynamic_cast( + op.get())) { + // A conversion is perfectly accurate. + if (totalAcc < 0) { + totalAcc = 0; + } } else { totalAcc = -1; break; -- cgit v1.2.3