From bc703787f16a3a1ec4cb337bd6ea532e9301e265 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 14 Apr 2020 23:59:57 +0200 Subject: projinfo: make it use the new C++ method to hide ballpark transformations --- src/apps/projinfo.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src') diff --git a/src/apps/projinfo.cpp b/src/apps/projinfo.cpp index 10ce346f..85db14e2 100644 --- a/src/apps/projinfo.cpp +++ b/src/apps/projinfo.cpp @@ -705,6 +705,7 @@ static void outputOperations( ctxt->setIntermediateCRS(pivots); ctxt->setUsePROJAlternativeGridNames(usePROJGridAlternatives); ctxt->setDiscardSuperseded(!showSuperseded); + ctxt->setAllowBallparkTransformations(outputOpt.ballparkAllowed); list = CoordinateOperationFactory::create()->createOperations( nnSourceCRS, nnTargetCRS, ctxt); if (!spatialCriterionExplicitlySpecified && @@ -726,15 +727,6 @@ static void outputOperations( << std::endl; std::exit(1); } - if (!outputOpt.ballparkAllowed) { - std::vector listNew; - for (const auto &op : list) { - if (!op->hasBallparkTransformation()) { - listNew.emplace_back(op); - } - } - list = std::move(listNew); - } if (outputOpt.quiet && !list.empty()) { outputObject(dbContext, list[0], allowUseIntermediateCRS, outputOpt); return; -- cgit v1.2.3