aboutsummaryrefslogtreecommitdiff
path: root/data/sql/commit.sql
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-04-01 22:20:21 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-04-01 22:20:21 +0200
commita028ecd97b15c4afeab2016ed507f2d4be842722 (patch)
treeb7c2a93d31c7e75435c8627266dc454e62ec67f9 /data/sql/commit.sql
parent5c56836dd12ec1e6f535fff67d1e6895cd95fb2b (diff)
downloadPROJ-a028ecd97b15c4afeab2016ed507f2d4be842722.tar.gz
PROJ-a028ecd97b15c4afeab2016ed507f2d4be842722.zip
Database: refine checks for 'Geog3D to Geog2D+XXX' transformations, and create less synthetic 'Geographic3D to GravityRelatedHeight' synthetic transformations
Diffstat (limited to 'data/sql/commit.sql')
-rw-r--r--data/sql/commit.sql6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/sql/commit.sql b/data/sql/commit.sql
index 7b0e15d7..8f647530 100644
--- a/data/sql/commit.sql
+++ b/data/sql/commit.sql
@@ -113,11 +113,11 @@ FOR EACH ROW BEGIN
g.method_name LIKE 'Geographic3D to GravityRelatedHeight%' AND
g.target_crs_auth_name || g.target_crs_code NOT IN
(SELECT auth_name || code FROM vertical_crs));
- SELECT RAISE(ABORT, 'One grid_transformation with Geographic3D to GravityRelatedHeight has not its source_crs in geodetic_crs table with type = ''geographic 3D''')
+ SELECT RAISE(ABORT, 'One grid_transformation with Geographic3D to GravityRelatedHeight or Geog3D to Geog2D+XXX has not its source_crs in geodetic_crs table with type = ''geographic 3D''')
WHERE EXISTS (SELECT * FROM grid_transformation g WHERE
g.deprecated = 0 AND
- g.method_name LIKE 'Geographic3D to GravityRelatedHeight%' AND
- NOT (g.auth_name = 'EPSG' AND g.code IN (9658,9660)) AND -- those are wrongly registered as they refer to a Geog2D CRS in EPGS v10.017. Reported to EPSG
+ (g.method_name LIKE 'Geographic3D to %' OR g.method_name LIKE 'Geog3D to %') AND
+ NOT (g.auth_name = 'EPSG' AND g.code IN (9658,9659,9660,9661)) AND -- those are wrongly registered as they refer to a Geog2D CRS in EPGS v10.017. Reported to EPSG
g.source_crs_auth_name || g.source_crs_code NOT IN
(SELECT auth_name || code FROM geodetic_crs
WHERE type = 'geographic 3D'));