diff options
| author | Even Rouault <even.rouault@mines-paris.org> | 2019-04-18 11:27:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-18 11:27:06 +0200 |
| commit | 4760c708ed7697178d55eac76332cdd63c54eb8c (patch) | |
| tree | c446851a7bc042a2629fa5a82c62796c64c409b8 /test/unit/test_factory.cpp | |
| parent | adc03895800b192f72dc70213786ee708909b75e (diff) | |
| parent | d9e2a15f2e17b6710ccffa3e271595e006ceadf2 (diff) | |
| download | PROJ-4760c708ed7697178d55eac76332cdd63c54eb8c.tar.gz PROJ-4760c708ed7697178d55eac76332cdd63c54eb8c.zip | |
Merge pull request #1427 from rouault/fix_geog2D_to_geog3D_same_datum
createOperations(): do not attempt using a unrelated datum intermediate when doing geog2D<-->geog3D conversions of same datum
Diffstat (limited to 'test/unit/test_factory.cpp')
| -rw-r--r-- | test/unit/test_factory.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp index 1ceef475..91024d62 100644 --- a/test/unit/test_factory.cpp +++ b/test/unit/test_factory.cpp @@ -1518,12 +1518,20 @@ class FactoryWithTmpDatabase : public ::testing::Test { const auto vals = std::vector<std::string>{"SOURCE", "TARGET", "PIVOT"}; for (const auto &val : vals) { + ASSERT_TRUE( + execute("INSERT INTO geodetic_datum " + "VALUES('FOO','" + + val + "','" + val + + "','',NULL," + "'EPSG','7030','EPSG','8901','EPSG','1262',0);")) + << last_error(); ASSERT_TRUE(execute("INSERT INTO geodetic_crs " "VALUES('NS_" + val + "','" + val + "','" + val + "',NULL,NULL,'geographic 2D','EPSG','6422'," - "'EPSG','6326'," - "'EPSG','1262',NULL,0);")) + "'FOO','" + + val + "'," + "'EPSG','1262',NULL,0);")) << last_error(); } } |
