diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-01-22 10:58:13 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-01-22 10:58:13 +0100 |
| commit | c048292f3b8e408e6a81700a74d9b44d532227ac (patch) | |
| tree | 4793063b442e2768d7bea3fd1c96f80a55140093 /test/unit/test_io.cpp | |
| parent | 5c86b290e2c5686cbf5100eb71e32b0362a989fc (diff) | |
| download | PROJ-c048292f3b8e408e6a81700a74d9b44d532227ac.tar.gz PROJ-c048292f3b8e408e6a81700a74d9b44d532227ac.zip | |
Coordinate operation computation with boundcrs / wktext: drop useless early bindins terms in generated pipeline (fixes #1232)
Diffstat (limited to 'test/unit/test_io.cpp')
| -rw-r--r-- | test/unit/test_io.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit/test_io.cpp b/test/unit/test_io.cpp index 15ba30f1..9bd3d70f 100644 --- a/test/unit/test_io.cpp +++ b/test/unit/test_io.cpp @@ -7024,6 +7024,17 @@ TEST(io, projparse_longlat_nadgrids) { // --------------------------------------------------------------------------- +TEST(io, projparse_longlat_nadgrids_towgs84_ignored) { + auto obj = PROJStringParser().createFromPROJString( + "+proj=longlat +ellps=GRS80 +towgs84=1,2,3 +nadgrids=foo.gsb " + "+type=crs"); + auto crs = nn_dynamic_pointer_cast<BoundCRS>(obj); + ASSERT_TRUE(crs != nullptr); + EXPECT_TRUE(dynamic_cast<GeographicCRS *>(crs->baseCRS().get()) != nullptr); +} + +// --------------------------------------------------------------------------- + TEST(io, projparse_longlat_geoidgrids) { auto obj = PROJStringParser().createFromPROJString( "+proj=longlat +ellps=GRS80 +geoidgrids=foo.gtx +type=crs"); |
