aboutsummaryrefslogtreecommitdiff
path: root/src/apps
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-04-14 23:59:57 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-04-14 23:59:57 +0200
commitbc703787f16a3a1ec4cb337bd6ea532e9301e265 (patch)
tree7f557e3c912e87d2cd1a6d1b11ea8115779b1a1a /src/apps
parenteadbb9d6201f27e5f92cef599b7baed680c86e22 (diff)
downloadPROJ-bc703787f16a3a1ec4cb337bd6ea532e9301e265.tar.gz
PROJ-bc703787f16a3a1ec4cb337bd6ea532e9301e265.zip
projinfo: make it use the new C++ method to hide ballpark transformations
Diffstat (limited to 'src/apps')
-rw-r--r--src/apps/projinfo.cpp10
1 files changed, 1 insertions, 9 deletions
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<CoordinateOperationNNPtr> 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;