diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-02-16 19:19:43 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-02-16 21:33:19 +0100 |
| commit | aacbcb8361c547d1ebc05b8438859229fd517ef2 (patch) | |
| tree | f5c0b79c46db32575b1203e9b92de3a798cd328f /test | |
| parent | 3477c94819e3b6ddba68c65ce2b3aa081d2f5204 (diff) | |
| download | PROJ-aacbcb8361c547d1ebc05b8438859229fd517ef2.tar.gz PROJ-aacbcb8361c547d1ebc05b8438859229fd517ef2.zip | |
Make sure that the PJ object returned by proj_create_crs_to_crs() is a proper CoordinateOperation so that we can call proj_get_source_crs() on it for example
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit/gie_self_tests.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/gie_self_tests.cpp b/test/unit/gie_self_tests.cpp index 7f9f436b..91a3069c 100644 --- a/test/unit/gie_self_tests.cpp +++ b/test/unit/gie_self_tests.cpp @@ -258,6 +258,12 @@ TEST_F(gieTest, proj_create_crs_to_crs) { a = proj_trans(P, PJ_FWD, a); EXPECT_NEAR(a.xy.x, b.xy.x, 1e-9); EXPECT_NEAR(a.xy.y, b.xy.y, 1e-9); + + auto src = proj_get_source_crs(PJ_DEFAULT_CTX, P); + ASSERT_TRUE(src != nullptr); + EXPECT_EQ(proj_get_name(src), std::string("ETRS89 / UTM zone 32N")); + proj_destroy(src); + proj_destroy(P); /* we can also allow PROJ strings as a usable PJ */ |
