From 250e4a222bb267b33d9404ae31a1d09a0e4e16d3 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 26 Feb 2020 16:23:39 +0100 Subject: Database: register 4 height Austrian grids from https://github.com/OSGeo/PROJ-data/pull/13 + handle 'Vertical Offset by Grid Interpolation (BEV AT)' method --- test/unit/test_operation.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/unit/test_operation.cpp') 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 @@ -6753,6 +6753,21 @@ TEST(operation, transformation_NZLVD_to_PROJ_string) { "+multiplier=1"); } +// --------------------------------------------------------------------------- + +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) { -- cgit v1.2.3