diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-12-15 16:37:09 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-12-15 16:37:09 +0100 |
| commit | a44a6231364d893d906711138035074fb95521a2 (patch) | |
| tree | a2d5451511c07dc13561a8928cda5f2e16511ee8 /test/unit/test_factory.cpp | |
| parent | 1762d1c93c77415e737cbcded2371ad5e22df751 (diff) | |
| download | PROJ-a44a6231364d893d906711138035074fb95521a2.tar.gz PROJ-a44a6231364d893d906711138035074fb95521a2.zip | |
Add SingleOperation::validateParameters()
Diffstat (limited to 'test/unit/test_factory.cpp')
| -rw-r--r-- | test/unit/test_factory.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp index 9ca844b1..3d9744c8 100644 --- a/test/unit/test_factory.cpp +++ b/test/unit/test_factory.cpp @@ -825,6 +825,11 @@ TEST(factory, AuthorityFactory_createCoordinateOperation_molodensky_badekas_PV) { auto factory = AuthorityFactory::create(DatabaseContext::create(), "EPSG"); auto op = factory->createCoordinateOperation("1066", false); + + auto so = nn_dynamic_pointer_cast<SingleOperation>(op); + ASSERT_TRUE(so != nullptr); + EXPECT_TRUE(so->validateParameters().empty()); + EXPECT_EQ(op->exportToPROJString(PROJStringFormatter::create().get()), "+proj=pipeline +step +proj=axisswap +order=2,1 +step " "+proj=unitconvert +xy_in=deg +xy_out=rad +step +proj=cart " |
