aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_operation.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-05-14 19:08:41 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-05-14 20:21:13 +0200
commit056226ee668f027e22baf6897da7507bcc98e132 (patch)
tree21ae98b05062bb49e22ffcf976c0985e48b666e9 /test/unit/test_operation.cpp
parent587187645099ca7aeba1a890a69abc52dc2c3155 (diff)
downloadPROJ-056226ee668f027e22baf6897da7507bcc98e132.tar.gz
PROJ-056226ee668f027e22baf6897da7507bcc98e132.zip
createOperations(): optimize BoundCRS to BoundCRS of vertical CRS using the same vertical datum
Diffstat (limited to 'test/unit/test_operation.cpp')
-rw-r--r--test/unit/test_operation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp
index b2a99e64..3d002a17 100644
--- a/test/unit/test_operation.cpp
+++ b/test/unit/test_operation.cpp
@@ -7531,8 +7531,8 @@ TEST(
auto dst = nn_dynamic_pointer_cast<CRS>(objDst);
ASSERT_TRUE(dst != nullptr);
- auto authFactory =
- AuthorityFactory::create(DatabaseContext::create(), "EPSG");
+ auto dbContext = DatabaseContext::create();
+ auto authFactory = AuthorityFactory::create(dbContext, "EPSG");
auto ctxt = CoordinateOperationContext::create(authFactory, nullptr, 0.0);
ctxt->setGridAvailabilityUse(
CoordinateOperationContext::GridAvailabilityUse::
@@ -7545,11 +7545,11 @@ TEST(
EXPECT_EQ(list[0]->nameStr(),
"Inverse of unnamed + "
"Transformation from NAD83 to WGS84 + "
- "NAVD88 height to WGS84 ellipsoidal height + "
- "Inverse of NAVD88 height to WGS84 ellipsoidal height + "
"NAVD88 height to NAVD88 height (ftUS) + "
"Inverse of Transformation from NAD83 to WGS84 + "
"unnamed");
+ auto grids = list[0]->gridsNeeded(dbContext, false);
+ EXPECT_TRUE(grids.empty());
EXPECT_EQ(list[0]->exportToPROJString(PROJStringFormatter::create().get()),
"+proj=pipeline "
"+step +inv +proj=tmerc +lat_0=30 +lon_0=-87.5 +k=0.999933333 "