-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4098 from kbevers/unique-nkg-names
Make NKG Transformation names unique
- Loading branch information
Showing
3 changed files
with
21 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
INSERT INTO "metadata" VALUES('NKG.SOURCE', 'https://github.com/NordicGeodesy/NordicTransformations'); | ||
INSERT INTO "metadata" VALUES('NKG.VERSION', '1.0.0'); | ||
INSERT INTO "metadata" VALUES('NKG.DATE', '2020-12-21'); | ||
INSERT INTO "metadata" VALUES('NKG.VERSION', '1.0.1'); | ||
INSERT INTO "metadata" VALUES('NKG.DATE', '2024-04-02'); | ||
|
||
-- extent for NKG2008 transformations | ||
INSERT INTO "extent" VALUES( | ||
|
@@ -687,7 +687,7 @@ INSERT INTO "usage" VALUES ( | |
-- NO | ||
INSERT INTO "helmert_transformation" VALUES ( | ||
'NKG','PAR_2020_NO', -- operation auth+code | ||
'NKG_ETRF14 to [email protected]', -- name | ||
'NKG_ETRF14 to [email protected] (Helmert)', -- name | ||
'Transformation from NKG_ETRF14 to ETRF93, at transformation reference epoch 2000.0', -- description / remark | ||
'EPSG','1033', -- method auth+code | ||
'Position Vector transformation (geocentric domain)', | ||
|
@@ -735,9 +735,9 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'NKG_ETRF14_ETRF93_2000', -- object auth+code | ||
'NKG_ETRF14 to [email protected]', -- name | ||
'NKG_ETRF14 to [email protected] (Gridshift)', -- name | ||
'Transformation from NKG_ETRF14 to ETRF93, at transformation reference epoch 2000.0', -- description / remark | ||
'PROJ', 'PROJString', | ||
'PROJ', 'PROJString', | ||
'+proj=xyzgridshift +grids=no_kv_NKGETRF14_EPSG7922_2000.tif', | ||
'NKG','ETRF14', -- source auth+code | ||
'EPSG','7922', -- target auth+code | ||
|
@@ -812,7 +812,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'ETRF92_2000_TO_ETRF92_1994',-- object auth+code | ||
'[email protected] to [email protected]', -- name | ||
'[email protected] to [email protected] using nkgrf03vel_realigned', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=-5.296 +grids=eur_nkg_nkgrf03vel_realigned.tif', | ||
|
@@ -917,7 +917,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'ETRF96_2000_TO_ETRF96_1997_56',-- object auth+code | ||
'[email protected] to [email protected]', -- name | ||
'[email protected] to [email protected] using nkgrf03vel_realigned', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=-2.44 +grids=eur_nkg_nkgrf03vel_realigned.tif', | ||
|
@@ -1025,7 +1025,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'ETRF96_2000_TO_ETRF96_1997',-- object auth+code | ||
'[email protected] to [email protected]', -- name | ||
'[email protected] to [email protected] using nkgrf03vel_realigned', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=-3.0 +grids=eur_nkg_nkgrf03vel_realigned.tif', | ||
|
@@ -1133,7 +1133,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'ETRF89_2000_TO_ETRF89_1992',-- object auth+code | ||
'[email protected] to [email protected]', -- name | ||
'[email protected] to [email protected] using nkgrf03vel_realigned', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=-7.25 +grids=eur_nkg_nkgrf03vel_realigned.tif', | ||
|
@@ -1240,7 +1240,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'ETRF2000_2000_TO_ETRF_2000_2003',-- object auth+code | ||
'[email protected] to [email protected]', -- name | ||
'[email protected] to [email protected] using nkgrf03vel_realigned', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=3.75 +grids=eur_nkg_nkgrf03vel_realigned.tif', | ||
|
@@ -1347,7 +1347,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'ETRF93_2000_TO_ETRF93_1995',-- object auth+code | ||
'[email protected] to [email protected]', -- name | ||
'[email protected] to [email protected] using nkgrf03vel_realigned', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=-5 +grids=eur_nkg_nkgrf03vel_realigned.tif', | ||
|
@@ -1454,7 +1454,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'ETRF97_2000_TO_ETRF97_1999',-- object auth+code | ||
'[email protected] to [email protected]', -- name | ||
'[email protected] to [email protected] using nkgrf03vel_realigned', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=-0.5 +grids=eur_nkg_nkgrf03vel_realigned.tif', | ||
|
@@ -1559,7 +1559,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'DK_2020_INTRAPLATE', -- object auth+code | ||
'[email protected] to [email protected]', -- name | ||
'[email protected] to [email protected] using nkgrf17vel', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=15.829 +grids=eur_nkg_nkgrf17vel.tif', | ||
|
@@ -1673,7 +1673,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'EE_2020_INTRAPLATE',-- object auth+code | ||
'[email protected] to [email protected]', -- name | ||
'[email protected] to [email protected] using nkgrf17vel', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=-2.44 +grids=eur_nkg_nkgrf17vel.tif', | ||
|
@@ -1789,7 +1789,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'FI_2020_INTRAPLATE',-- object auth+code | ||
'[email protected] to [email protected]', -- name | ||
'[email protected] to [email protected] using nkgrf17vel', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=-3 +grids=eur_nkg_nkgrf17vel.tif', | ||
|
@@ -1905,7 +1905,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'LV_2020_INTRAPLATE', -- object auth+code | ||
'[email protected] to [email protected] (LKS-92)', -- name | ||
'[email protected] to [email protected] (LKS-92) using nkgrf17vel', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=-7.25 +grids=eur_nkg_nkgrf17vel.tif', | ||
|
@@ -2021,7 +2021,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'LT_2020_INTRAPLATE', -- object auth+code | ||
'[email protected] to [email protected] (LKS94)', -- name | ||
'[email protected] to [email protected] (LKS94) using nkgrf17vel', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=3.75 +grids=eur_nkg_nkgrf17vel.tif', | ||
|
@@ -2137,7 +2137,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'NO_2020_INTRAPLATE', -- object auth+code | ||
'[email protected] to [email protected]', -- name | ||
'[email protected] to [email protected] using nkgrf17vel', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=-5 +grids=eur_nkg_nkgrf17vel.tif', | ||
|
@@ -2202,7 +2202,7 @@ INSERT INTO "concatenated_operation_step" ( | |
operation_auth_name, operation_code, step_number, step_auth_name, step_code | ||
) VALUES | ||
('NKG', 'ITRF2014_TO_NO', 1, 'EPSG', '8366'), -- ITRF2014 -> ETRF2014 | ||
('NKG', 'ITRF2014_TO_NO', 2, 'NKG', 'NKG_ETRF14_TO_ETRF2014'), | ||
('NKG', 'ITRF2014_TO_NO', 2, 'NKG', 'NKG_ETRF14_TO_ETRF2014'), | ||
('NKG', 'ITRF2014_TO_NO', 3, 'NKG', 'NKG_ETRF14_ETRF93_2000'), | ||
('NKG', 'ITRF2014_TO_NO', 4, 'NKG', 'NO_2020_INTRAPLATE') | ||
; | ||
|
@@ -2247,7 +2247,7 @@ INSERT INTO "other_transformation" ( | |
) | ||
VALUES( | ||
'NKG', 'SE_2020_INTRAPLATE',-- object auth+code | ||
'[email protected] to [email protected]', -- name | ||
'[email protected] to [email protected] using nkgrf17vel', -- name | ||
NULL, -- description | ||
'PROJ', 'PROJString', -- method auth+cod | ||
'+proj=deformation +dt=-0.5 +grids=eur_nkg_nkgrf17vel.tif', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1313,12 +1313,6 @@ FOR EACH ROW BEGIN | |
SELECT RAISE(ABORT, 'insert on other_transformation violates constraint: name (of a non-deprecated entry) must not already exist in (a non-deprecated entry of) coordinate_operation_with_conversion_view') | ||
WHERE EXISTS (SELECT 1 FROM coordinate_operation_with_conversion_view covwv WHERE covwv.name = NEW.name AND covwv.deprecated = 0 AND NEW.deprecated = 0 | ||
AND NEW.auth_name IN (SELECT auth_name FROM builtin_authorities WHERE auth_name != 'IGNF') | ||
AND NEW.name != 'NKG_ETRF14 to [email protected]' -- NKG:PAR_2020_NO and NKG:NKG_ETRF14_ETRF93_2000 have the same name | ||
AND NEW.name != '[email protected] to [email protected]' -- NKG:ETRF96_2000_TO_ETRF96_1997_56 and NKG:EE_2020_INTRAPLATE have the same name | ||
AND NEW.name != '[email protected] to [email protected]' -- NKG:ETRF93_2000_TO_ETRF93_1995 and NKG:NO_2020_INTRAPLATE have the same name | ||
AND NEW.name != '[email protected] to [email protected]' -- NKG:ETRF92_2000_TO_ETRF92_1994 and NKG:DK_2020_INTRAPLATE have the same name | ||
AND NEW.name != '[email protected] to [email protected]' -- NKG:ETRF96_2000_TO_ETRF96_1997 AND NKG:FI_2020_INTRAPLATE have the same name | ||
AND NEW.name != '[email protected] to [email protected]' -- NKG:ETRF97_2000_TO_ETRF97_1999 and NKG:SE_2020_INTRAPLATE have the same name | ||
); | ||
|
||
SELECT RAISE(ABORT, 'insert on other_transformation violates constraint: source_crs(auth_name, code) not found') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1971,7 +1971,7 @@ TEST(operation, geogCRS_to_geogCRS_with_intermediate_no_ids) { | |
"ITRF2014 to ETRF2014 (1) + " | ||
"Inverse of NKG_ETRF14 to ETRF2014 + " | ||
"NKG_ETRF14 to [email protected] + " | ||
"[email protected] to [email protected] + " | ||
"[email protected] to [email protected] using nkgrf17vel + " | ||
"Conversion from ETRS89 (geocentric) to ETRS89 (geog2D) + " | ||
"Inverse of EST97 to ETRS89 (1) + " | ||
"Null geographic offset from EST97 (geog2D) to EST97 (geog3D) + " | ||
|