diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2020-04-13 10:32:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-13 10:32:05 +0200 |
| commit | 031b6ab95e4bedbf2f8f5d55407562b2b69ce98f (patch) | |
| tree | be30b23ad491e2bd2970ee9a281c0867624b5b3b /test/unit/proj_angular_io_test.cpp | |
| parent | b0215f78903a0303c8c214119dc1b1508ffef846 (diff) | |
| parent | 925ae56c40b0cfa7d861f55e4332cb5603168a2c (diff) | |
| download | PROJ-031b6ab95e4bedbf2f8f5d55407562b2b69ce98f.tar.gz PROJ-031b6ab95e4bedbf2f8f5d55407562b2b69ce98f.zip | |
Merge pull request #2144 from kbevers/proj_degree_inoutput
Add proj_degree_input() and proj_degree_output()
Diffstat (limited to 'test/unit/proj_angular_io_test.cpp')
| -rw-r--r-- | test/unit/proj_angular_io_test.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/unit/proj_angular_io_test.cpp b/test/unit/proj_angular_io_test.cpp index dbf09986..30eae298 100644 --- a/test/unit/proj_angular_io_test.cpp +++ b/test/unit/proj_angular_io_test.cpp @@ -98,4 +98,23 @@ TEST(AngularUnits, Pipelines3) { proj_context_destroy(ctx); } +TEST(AngularUnits, Degrees) { + auto ctx = proj_context_create(); + auto P = proj_create( + ctx, + "+proj=pipeline " + "+step +inv +proj=utm +zone=32 +ellps=GRS80 " + "+step +proj=unitconvert +xy_in=rad +xy_out=deg " + ); + + EXPECT_FALSE(proj_degree_input(P, PJ_FWD)); + EXPECT_TRUE(proj_degree_input(P, PJ_INV)); + EXPECT_TRUE(proj_degree_output(P, PJ_FWD)); + EXPECT_FALSE(proj_degree_output(P, PJ_INV)); + + proj_destroy(P); + proj_context_destroy(ctx); + +} + } // namespace |
