From 71d4232457281984c20fb47133ca361ba731f6ac Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 30 Mar 2020 10:57:34 +0000 Subject: Database: fix registration of custom entries of grid_transformation_custom.sql for geoid grids (fixes #2112) --- data/sql/commit.sql | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'data/sql/commit.sql') diff --git a/data/sql/commit.sql b/data/sql/commit.sql index a3028586..d090ccb2 100644 --- a/data/sql/commit.sql +++ b/data/sql/commit.sql @@ -63,19 +63,6 @@ FOR EACH ROW BEGIN (SELECT auth_name || code FROM geodetic_crs WHERE type = 'geographic 2D')); - -- check that grids with HEIGHT_TO_GEOGRAPHIC3D method are properly registered - SELECT RAISE(ABORT, 'One grid_transformation with HEIGHT_TO_GEOGRAPHIC3D has not its source_crs in vertical_crs table') - WHERE EXISTS (SELECT * FROM grid_transformation g WHERE - g.method_code = 'HEIGHT_TO_GEOGRAPHIC3D' AND - g.source_crs_auth_name || g.source_crs_code NOT IN - (SELECT auth_name || code FROM vertical_crs)); - SELECT RAISE(ABORT, 'One grid_transformation with HEIGHT_TO_GEOGRAPHIC3D has not its target_crs in geodetic_crs table with type = ''geographic 3D''') - WHERE EXISTS (SELECT * FROM grid_transformation g WHERE - g.method_code = 'HEIGHT_TO_GEOGRAPHIC3D' AND - g.target_crs_auth_name || g.target_crs_code NOT IN - (SELECT auth_name || code FROM geodetic_crs - WHERE type = 'geographic 3D')); - -- check that grids with Geographic3D to GravityRelatedHeight method are properly registered SELECT RAISE(ABORT, 'One grid_transformation with Geographic3D to GravityRelatedHeight has not its target_crs in vertical_crs table') WHERE EXISTS (SELECT * FROM grid_transformation g WHERE -- cgit v1.2.3