diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-10-06 17:08:29 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-10-08 17:31:55 +0200 |
| commit | ff9a386c72afb277aa79b86c7efb54e9843e810a (patch) | |
| tree | f084ad0ec6c1cdd6512b0185bf9ed054b6835739 /data/sql/commit.sql | |
| parent | ecf9cf0d975b3eb7630a314e8b32dd59658c3e2a (diff) | |
| download | PROJ-ff9a386c72afb277aa79b86c7efb54e9843e810a.tar.gz PROJ-ff9a386c72afb277aa79b86c7efb54e9843e810a.zip | |
Database: import datum ensemble accuracy and members (but do not use them)
Diffstat (limited to 'data/sql/commit.sql')
| -rw-r--r-- | data/sql/commit.sql | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/data/sql/commit.sql b/data/sql/commit.sql index d6293b1f..53c571b6 100644 --- a/data/sql/commit.sql +++ b/data/sql/commit.sql @@ -44,6 +44,20 @@ FOR EACH ROW BEGIN AND NOT (o.auth_name = 'IGNF' AND o.table_name IN ('geodetic_datum', 'vertical_datum', 'conversion')) ); + SELECT RAISE(ABORT, 'Geodetic datum ensemble defined, but no ensemble member') + WHERE EXISTS ( + SELECT * FROM geodetic_datum d WHERE ensemble_accuracy IS NOT NULL + AND NOT EXISTS (SELECT 1 FROM geodetic_datum_ensemble_member WHERE + d.auth_name = ensemble_auth_name AND d.code = ensemble_code) + ); + + SELECT RAISE(ABORT, 'Vertical datum ensemble defined, but no ensemble member') + WHERE EXISTS ( + SELECT * FROM vertical_datum d WHERE ensemble_accuracy IS NOT NULL + AND NOT EXISTS (SELECT 1 FROM vertical_datum_ensemble_member WHERE + d.auth_name = ensemble_auth_name AND d.code = ensemble_code) + ); + -- test to check that our custom grid transformation overrides are really needed SELECT RAISE(ABORT, 'PROJ grid_transformation defined whereas EPSG has one') WHERE EXISTS (SELECT 1 FROM grid_transformation g1 |
