aboutsummaryrefslogtreecommitdiff
path: root/data/sql
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@mines-paris.org>2019-02-21 17:42:41 +0100
committerGitHub <noreply@github.com>2019-02-21 17:42:41 +0100
commitbbf31d0e1052a40269547d0dec5d63a7e0534ccc (patch)
treeb48ac00785b9107072de08b2d591e62c3143fe32 /data/sql
parentf5a78058c9d8e633e34e6b0979c79cb7d17b1a93 (diff)
parent287230f86d89a26574c777bb5e5b498084a84897 (diff)
downloadPROJ-bbf31d0e1052a40269547d0dec5d63a7e0534ccc.tar.gz
PROJ-bbf31d0e1052a40269547d0dec5d63a7e0534ccc.zip
Merge pull request #1280 from rouault/SWEN17_RH2000_gtx
proj.db: add missing custom entries for vertical transform and fix a few wrong ones
Diffstat (limited to 'data/sql')
-rw-r--r--data/sql/grid_alternatives.sql149
-rw-r--r--data/sql/grid_transformation_custom.sql28
2 files changed, 172 insertions, 5 deletions
diff --git a/data/sql/grid_alternatives.sql b/data/sql/grid_alternatives.sql
index 99f20d0e..6d766b21 100644
--- a/data/sql/grid_alternatives.sql
+++ b/data/sql/grid_alternatives.sql
@@ -26,6 +26,12 @@ INSERT INTO grid_packages VALUES ('proj-datumgrid-europe',
1,
1);
+INSERT INTO grid_packages VALUES ('proj-datumgrid-oceania',
+ 'Package with grids of interest for Oceania',
+ 'https://download.osgeo.org/proj/proj-datumgrid-oceania-latest.zip',
+ 1,
+ 1);
+
-- not released yet at the time of writing
INSERT INTO grid_packages VALUES ('proj-datumgrid-world',
'Package with grids of global extent (too large to be included in proj-datumgrid)',
@@ -286,6 +292,74 @@ INSERT INTO grid_alternatives(original_grid_name,
'proj-datumgrid-europe',
NULL, NULL, NULL, NULL);
+-- Faroe islands height models
+
+INSERT INTO grid_alternatives(original_grid_name,
+ proj_grid_name,
+ proj_grid_format,
+ proj_method,
+ inverse_direction,
+ package_name,
+ url, direct_download, open_license, directory)
+ VALUES ('fvr09.gtx',
+ 'fvr09.gtx', -- no change. Just document the package
+ 'GTX',
+ 'vgridshift',
+ 0, -- do not reverse here as grid_transformation_custom does reference from VerticalCRS height to Geographic height
+ 'proj-datumgrid-europe',
+ NULL, NULL, NULL, NULL);
+
+-- Sweden height models
+
+INSERT INTO grid_alternatives(original_grid_name,
+ proj_grid_name,
+ proj_grid_format,
+ proj_method,
+ inverse_direction,
+ package_name,
+ url, direct_download, open_license, directory)
+ VALUES ('SWEN17_RH2000.gtx',
+ 'SWEN17_RH2000.gtx', -- no change. Just document the package
+ 'GTX',
+ 'vgridshift',
+ 0, -- do not reverse here as grid_transformation_custom does reference from VerticalCRS height to Geographic height
+ 'proj-datumgrid-europe',
+ NULL, NULL, NULL, NULL);
+
+-- Ireland: OSGM15 height, Malin head datum -> ETRS89 ellipsoidal heights
+
+INSERT INTO grid_alternatives(original_grid_name,
+ proj_grid_name,
+ proj_grid_format,
+ proj_method,
+ inverse_direction,
+ package_name,
+ url, direct_download, open_license, directory)
+ VALUES ('OSGM15_Malin.gri',
+ 'OSGM15_Malin.gtx',
+ 'GTX',
+ 'vgridshift',
+ 1,
+ 'proj-datumgrid-europe',
+ NULL, NULL, NULL, NULL);
+
+-- Northern Ireland: OSGM15 height, Belfast height -> ETRS89 ellipsoidal heights
+
+INSERT INTO grid_alternatives(original_grid_name,
+ proj_grid_name,
+ proj_grid_format,
+ proj_method,
+ inverse_direction,
+ package_name,
+ url, direct_download, open_license, directory)
+ VALUES ('OSGM15_Belfast.gri',
+ 'OSGM15_Belfast.gtx',
+ 'GTX',
+ 'vgridshift',
+ 1,
+ 'proj-datumgrid-europe',
+ NULL, NULL, NULL, NULL);
+
----------------------------
-- US GEOID12B height models
----------------------------
@@ -302,7 +376,7 @@ INSERT INTO grid_alternatives(original_grid_name,
'g2012bu0.gtx',
'GTX',
'vgridshift',
- 0,
+ 1,
'proj-datumgrid-north-america',
NULL, NULL, NULL, NULL);
@@ -318,7 +392,7 @@ INSERT INTO grid_alternatives(original_grid_name,
'g2012ba0.gtx',
'GTX',
'vgridshift',
- 0,
+ 1,
'proj-datumgrid-north-america',
NULL, NULL, NULL, NULL);
@@ -334,7 +408,7 @@ INSERT INTO grid_alternatives(original_grid_name,
'g2012bp0.gtx',
'GTX',
'vgridshift',
- 0,
+ 1,
'proj-datumgrid-north-america',
NULL, NULL, NULL, NULL);
@@ -350,7 +424,7 @@ INSERT INTO grid_alternatives(original_grid_name,
'g2012bg0.gtx',
'GTX',
'vgridshift',
- 0,
+ 1,
'proj-datumgrid-north-america',
NULL, NULL, NULL, NULL);
@@ -366,7 +440,7 @@ INSERT INTO grid_alternatives(original_grid_name,
'g2012bs0.gtx',
'GTX',
'vgridshift',
- 0,
+ 1,
'proj-datumgrid-north-america',
NULL, NULL, NULL, NULL);
@@ -644,3 +718,68 @@ INSERT INTO grid_alternatives(original_grid_name,
1,
'proj-datumgrid-europe',
NULL, NULL, NULL, NULL);
+
+
+----------------------------
+-- Australian grids
+----------------------------
+
+INSERT INTO grid_alternatives(original_grid_name,
+ proj_grid_name,
+ proj_grid_format,
+ proj_method,
+ inverse_direction,
+ package_name,
+ url, direct_download, open_license, directory)
+ VALUES ('A66 National (13.09.01).gsb',
+ 'A66_National_13_09_01.gsb',
+ 'NTv2',
+ 'hgridshift',
+ 0,
+ 'proj-datumgrid-oceania',
+ NULL, NULL, NULL, NULL);
+
+INSERT INTO grid_alternatives(original_grid_name,
+ proj_grid_name,
+ proj_grid_format,
+ proj_method,
+ inverse_direction,
+ package_name,
+ url, direct_download, open_license, directory)
+ VALUES ('National 84 (02.07.01).gsb',
+ 'National_84_02_07_01.gsb',
+ 'NTv2',
+ 'hgridshift',
+ 0,
+ 'proj-datumgrid-oceania',
+ NULL, NULL, NULL, NULL);
+
+INSERT INTO grid_alternatives(original_grid_name,
+ proj_grid_name,
+ proj_grid_format,
+ proj_method,
+ inverse_direction,
+ package_name,
+ url, direct_download, open_license, directory)
+ VALUES ('GDA94_GDA2020_conformal.gsb',
+ 'GDA94_GDA2020_conformal.gsb',
+ 'NTv2',
+ 'hgridshift',
+ 0,
+ 'proj-datumgrid-oceania',
+ NULL, NULL, NULL, NULL);
+
+INSERT INTO grid_alternatives(original_grid_name,
+ proj_grid_name,
+ proj_grid_format,
+ proj_method,
+ inverse_direction,
+ package_name,
+ url, direct_download, open_license, directory)
+ VALUES ('GDA94_GDA2020_conformal_and_distortion.gsb',
+ 'GDA94_GDA2020_conformal_and_distortion.gsb',
+ 'NTv2',
+ 'hgridshift',
+ 0,
+ 'proj-datumgrid-oceania',
+ NULL, NULL, NULL, NULL);
diff --git a/data/sql/grid_transformation_custom.sql b/data/sql/grid_transformation_custom.sql
index a43312fe..3c47273e 100644
--- a/data/sql/grid_transformation_custom.sql
+++ b/data/sql/grid_transformation_custom.sql
@@ -1,5 +1,7 @@
-- This file is hand generated.
+-- Denmark
+
INSERT INTO "grid_transformation" VALUES(
'PROJ','EPSG_5799_TO_EPSG_4937','DVR90 height to ETRS89',
NULL,NULL,
@@ -21,3 +23,29 @@ INSERT INTO "grid_transformation" VALUES(
NULL,
'EPSG','8666','Geoid (height correction) model file','dnn.gtx',
NULL,NULL,NULL,NULL,NULL,NULL,0);
+
+-- Faroe Islands
+
+INSERT INTO "grid_transformation" VALUES(
+ 'PROJ','EPSG_5317_TO_EPSG_4937','FVR09 height to ETRS89',
+ NULL,NULL,
+ 'PROJ','HEIGHT_TO_GEOGRAPHIC3D','GravityRelatedHeight to Geographic3D',
+ 'EPSG','5317', -- source CRS (FVR09 height)
+ 'EPSG','4937', -- target CRS (ETRS89)
+ 'EPSG','3248', -- area of use: Faroe Islands - onshore
+ NULL,
+ 'EPSG','8666','Geoid (height correction) model file','fvr09.gtx',
+ NULL,NULL,NULL,NULL,NULL,NULL,0);
+
+-- Sweden
+
+INSERT INTO "grid_transformation" VALUES(
+ 'PROJ','EPSG_5613_TO_EPSG_4377','RH2000 height to SWEREF99',
+ NULL,NULL,
+ 'PROJ','HEIGHT_TO_GEOGRAPHIC3D','GravityRelatedHeight to Geographic3D',
+ 'EPSG','5613', -- source CRS (RH2000 height)
+ 'EPSG','4377', -- target CRS (SWEREF99)
+ 'EPSG','3313', -- area of use: Sweden onshore
+ NULL,
+ 'EPSG','8666','Geoid (height correction) model file','SWEN17_RH2000.gtx',
+ NULL,NULL,NULL,NULL,NULL,NULL,0);