diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-04-30 14:31:16 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-04-30 14:31:56 +0200 |
| commit | cca27b1fae234a90df42ff5341121759846dc39b (patch) | |
| tree | b8ddb4dce50e1225d1ca38a8907f52d8faab31d9 /test | |
| parent | a5713ce66b60e3fe1a9147a4159e6636c1fac205 (diff) | |
| download | PROJ-cca27b1fae234a90df42ff5341121759846dc39b.tar.gz PROJ-cca27b1fae234a90df42ff5341121759846dc39b.zip | |
Propagate ballpark transformation flag to inverse coordinate operations
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit/test_operation.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp index b7b87d76..e1ced807 100644 --- a/test/unit/test_operation.cpp +++ b/test/unit/test_operation.cpp @@ -5396,6 +5396,21 @@ TEST(operation, projCRS_to_projCRS_context_incompatible_areas) { // --------------------------------------------------------------------------- +TEST(operation, projCRS_to_projCRS_context_incompatible_areas_ballpark) { + auto authFactory = + AuthorityFactory::create(DatabaseContext::create(), "EPSG"); + auto ctxt = CoordinateOperationContext::create(authFactory, nullptr, 0.0); + auto list = CoordinateOperationFactory::create()->createOperations( + authFactory->createCoordinateReferenceSystem("26711"), // UTM 11 NAD27 + authFactory->createCoordinateReferenceSystem( + "3034"), // ETRS89 / LCC Europe + ctxt); + ASSERT_GE(list.size(), 1U); + EXPECT_TRUE(list[0]->hasBallparkTransformation()); +} + +// --------------------------------------------------------------------------- + TEST(operation, projCRS_to_projCRS_north_pole_inverted_axis) { auto authFactory = |
