diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-01-26 18:17:44 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-01-26 18:17:44 +0100 |
| commit | 62799e10a3aa51e61e428e87f4aec10f65c737cb (patch) | |
| tree | 8228d7a1a1d89a1efb1420d9507204f20f92c3ae /test/unit/gie_self_tests.cpp | |
| parent | a8e7ef45d132b44dd4096c6fe3703fe92b390d1e (diff) | |
| download | PROJ-62799e10a3aa51e61e428e87f4aec10f65c737cb.tar.gz PROJ-62799e10a3aa51e61e428e87f4aec10f65c737cb.zip | |
proj_trans_generic(): make it work with multiple internal coordinate operations (fixes #1237)
Diffstat (limited to 'test/unit/gie_self_tests.cpp')
| -rw-r--r-- | test/unit/gie_self_tests.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit/gie_self_tests.cpp b/test/unit/gie_self_tests.cpp index 2d298ea3..14bb2241 100644 --- a/test/unit/gie_self_tests.cpp +++ b/test/unit/gie_self_tests.cpp @@ -694,6 +694,17 @@ TEST(gie, proj_create_crs_to_crs_PULKOVO42_ETRS89) { EXPECT_NEAR(c.xy.x, 45, 1e-9); EXPECT_NEAR(c.xy.y, 25, 1e-9); + c.xyz.x = 45; // Lat + c.xyz.y = 25; // Long + c.xyz.z = 0; + proj_trans_generic (P, PJ_FWD, + &(c.xyz.x), sizeof(double), 1, + &(c.xyz.y), sizeof(double), 1, + &(c.xyz.z), sizeof(double), 1, + nullptr, 0, 0); + EXPECT_NEAR(c.xy.x, 44.999701238, 1e-9); + EXPECT_NEAR(c.xy.y, 24.998474948, 1e-9); + // Poland c.xyz.x = 52; // Lat c.xyz.y = 20; // Long |
