aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_operation.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-02-27 12:19:19 +0100
committerGitHub <noreply@github.com>2020-02-27 12:19:19 +0100
commitdbf5f363ae4fb2bca3ddf8d15d0d92f0b56eac1d (patch)
tree7f940b7394f6a8393fe3a32ea1594a81c37a189e /test/unit/test_operation.cpp
parent3a38f506180d821b78102df1b24f862b5952fe00 (diff)
parent250e4a222bb267b33d9404ae31a1d09a0e4e16d3 (diff)
downloadPROJ-dbf5f363ae4fb2bca3ddf8d15d0d92f0b56eac1d.tar.gz
PROJ-dbf5f363ae4fb2bca3ddf8d15d0d92f0b56eac1d.zip
Merge pull request #1989 from rouault/register_austrian_height_grids
Database: register 4 height Austrian grids from https://github.com/OSGeo/PROJ-data/pull/13 + handle 'Vertical Offset by Grid Interpolation (BEV AT)' method
Diffstat (limited to 'test/unit/test_operation.cpp')
-rw-r--r--test/unit/test_operation.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp
index fb611f68..84415efb 100644
--- a/test/unit/test_operation.cpp
+++ b/test/unit/test_operation.cpp
@@ -6755,6 +6755,21 @@ TEST(operation, transformation_NZLVD_to_PROJ_string) {
// ---------------------------------------------------------------------------
+TEST(operation, transformation_BEV_AT_to_PROJ_string) {
+ auto dbContext = DatabaseContext::create();
+ auto factory = AuthorityFactory::create(dbContext, "EPSG");
+ auto op = factory->createCoordinateOperation("9275", false);
+ EXPECT_EQ(op->exportToPROJString(
+ PROJStringFormatter::create(
+ PROJStringFormatter::Convention::PROJ_5, dbContext)
+ .get()),
+ "+proj=vgridshift +grids=at_bev_GV_Hoehengrid_V1.tif "
+ "+multiplier=1");
+}
+
+
+// ---------------------------------------------------------------------------
+
TEST(operation, transformation_longitude_rotation_to_PROJ_string) {
auto src = GeographicCRS::create(