diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-05-07 15:40:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-07 15:40:50 +0200 |
| commit | 4948c5a24d118a993823205c6da95e1380b2b967 (patch) | |
| tree | 4d464df04190ae115e7f54259457286d22580eb9 /data/sql/customizations.sql | |
| parent | 60cea743d3736d9cc178496ac842bf5df0acb89c (diff) | |
| parent | 939dc46af4d05fea87e2f750db71c8f63144fbb8 (diff) | |
| download | PROJ-4948c5a24d118a993823205c6da95e1380b2b967.tar.gz PROJ-4948c5a24d118a993823205c6da95e1380b2b967.zip | |
Merge pull request #1458 from OSGeo/backport-1454-to-6.1
[Backport 6.1] createOperations(): fix case of ETRS89 3D to proj string with nadgrids and geoidgrids
Diffstat (limited to 'data/sql/customizations.sql')
| -rw-r--r-- | data/sql/customizations.sql | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/data/sql/customizations.sql b/data/sql/customizations.sql index ee023700..0ce4a692 100644 --- a/data/sql/customizations.sql +++ b/data/sql/customizations.sql @@ -19,6 +19,25 @@ DELETE FROM "supersession" WHERE superseded_table_name = 'grid_transformation' A replacement_code = '8885' AND source = 'EPSG'; +-- ('EPSG','7001','ETRS89 to NAP height (1)') lacks an interpolationCRS with Amersfoort / EPSG:4289 +-- See https://salsa.debian.org/debian-gis-team/proj-rdnap/blob/debian/2008-8/Use%20of%20RDTRANS2008%20and%20NAPTRANS2008.pdf +-- "The naptrans2008 VDatum-grid is referenced to the Bessel-1841 ellipsoid" +CREATE TABLE dummy(foo); +CREATE TRIGGER check_grid_transformation_epsg_7001 +BEFORE INSERT ON dummy +FOR EACH ROW BEGIN + SELECT RAISE(ABORT, 'grid_transformation EPSG:7001 entry is not ETRS89 to NAP height (1)') + WHERE NOT EXISTS(SELECT 1 FROM grid_transformation WHERE auth_name = 'EPSG' AND code = '7001' AND name = 'ETRS89 to NAP height (1)'); + SELECT RAISE(ABORT, 'grid_transformation EPSG:7001 entry has already an interpolationCRS') + WHERE EXISTS(SELECT 1 FROM grid_transformation WHERE auth_name = 'EPSG' AND code = '7001' AND interpolation_crs_auth_name IS NOT NULL); +END; +INSERT INTO dummy DEFAULT VALUES; +DROP TRIGGER check_grid_transformation_epsg_7001; +DROP TABLE dummy; +UPDATE grid_transformation SET interpolation_crs_auth_name = 'EPSG', + interpolation_crs_code = '4289' + WHERE auth_name = 'EPSG' AND code = '7001'; + -- Define the allowed authorities, and their precedence, when researching a -- coordinate operation |
