aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_factory.cpp
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2019-02-18 09:45:18 +0100
committerGitHub <noreply@github.com>2019-02-18 09:45:18 +0100
commit4277e15cefae5bb1d49312498e0f626b652e7524 (patch)
tree189e5bc87ac99a73f515b3800c2e1898c732f7b3 /test/unit/test_factory.cpp
parent455cb889e8259d8799f4cc9cce6b06ebe076f363 (diff)
parente8b2e2a36324006146406fb1fc89ce6ed863807f (diff)
downloadPROJ-4277e15cefae5bb1d49312498e0f626b652e7524.tar.gz
PROJ-4277e15cefae5bb1d49312498e0f626b652e7524.zip
Merge pull request #1276 from rouault/intermediate_crs_use_only_if_no_direct_transformation
Modify the default strategy of researching intermediate CRS to do it only if there is no direct transformation
Diffstat (limited to 'test/unit/test_factory.cpp')
-rw-r--r--test/unit/test_factory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp
index d5c82afb..80de017f 100644
--- a/test/unit/test_factory.cpp
+++ b/test/unit/test_factory.cpp
@@ -1616,7 +1616,8 @@ class FactoryWithTmpDatabase : public ::testing::Test {
{
auto ctxt =
CoordinateOperationContext::create(factory, nullptr, 0);
- ctxt->setAllowUseIntermediateCRS(false);
+ ctxt->setAllowUseIntermediateCRS(
+ CoordinateOperationContext::IntermediateCRSUse::NEVER);
res = CoordinateOperationFactory::create()->createOperations(
srcCRS, targetCRS, ctxt);
EXPECT_EQ(res.size(), 1U);