aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/sql/customizations.sql12
-rwxr-xr-xtest/cli/testprojinfo4
-rw-r--r--test/cli/testprojinfo_out.dist26
3 files changed, 42 insertions, 0 deletions
diff --git a/data/sql/customizations.sql b/data/sql/customizations.sql
index 8e31c233..6e9bacbb 100644
--- a/data/sql/customizations.sql
+++ b/data/sql/customizations.sql
@@ -7,6 +7,18 @@ INSERT INTO "other_transformation" VALUES('PROJ','CRS84_TO_EPSG_4326','OGC:CRS84
-- alias of EPSG:3857
INSERT INTO "projected_crs" VALUES('EPSG','900913','Google Maps Global Mercator',NULL,NULL,'EPSG','4499','EPSG','4326','EPSG','3856','EPSG','3544',NULL,1);
+-- Remove supression entry of EPSG:8371 ("RGF93 to NGF IGN69 height (2)", using RAF09.mnt) by
+-- EPSG:8885 ("RGF93 to NGF IGN69 height (3)", using RAF18.tac), since
+-- we have only RAF09.mnt in proj-datumgrid-europe
+-- Our code to remove superseded operations should probably take into account grid availability
+DELETE FROM "supersession" WHERE superseded_table_name = 'grid_transformation' AND
+ superseded_auth_name = 'EPSG' AND
+ superseded_code = '8371' AND
+ replacement_table_name = 'grid_transformation' AND
+ replacement_auth_name = 'EPSG' AND
+ replacement_code = '8885' AND
+ source = 'EPSG';
+
-- Define the allowed authorities, and their precedence, when researching a
-- coordinate operation
diff --git a/test/cli/testprojinfo b/test/cli/testprojinfo
index 0f987850..08ec9ce4 100755
--- a/test/cli/testprojinfo
+++ b/test/cli/testprojinfo
@@ -112,6 +112,10 @@ echo "Testing NAD83(2011) + NAVD88 height -> NAD83(2011) : projinfo -s EPSG:6349
$EXE -s EPSG:6349 -t EPSG:6319 --spatial-test intersects -o PROJ >>${OUT} 2>&1
echo "" >>${OUT}
+echo "Testing NGF IGN69 height to RGF93: projinfo -s EPSG:5720 -t EPSG:4965 -o PROJ" >> ${OUT}
+$EXE -s EPSG:5720 -t EPSG:4965 -o PROJ >>${OUT} 2>&1
+echo "" >>${OUT}
+
# do 'diff' with distribution results
echo "diff ${OUT} with testprojinfo_out.dist"
diff -u ${OUT} ${TEST_CLI_DIR}/testprojinfo_out.dist
diff --git a/test/cli/testprojinfo_out.dist b/test/cli/testprojinfo_out.dist
index b22766d9..a2e2cab9 100644
--- a/test/cli/testprojinfo_out.dist
+++ b/test/cli/testprojinfo_out.dist
@@ -756,3 +756,29 @@ unknown id, Inverse of NAD83(2011) to NAVD88 height (2), 0.2 m, USA - Alaska
PROJ string:
+proj=pipeline +step +proj=axisswap +order=2,1 +step +proj=unitconvert +xy_in=deg +xy_out=rad +step +proj=vgridshift +grids=g2012ba0.gtx +multiplier=1 +step +proj=unitconvert +xy_in=rad +xy_out=deg +step +proj=axisswap +order=2,1
+Testing NGF IGN69 height to RGF93: projinfo -s EPSG:5720 -t EPSG:4965 -o PROJ
+Candidate operations found: 3
+-------------------------------------
+Operation n°1:
+
+INVERSE(DERIVED_FROM(EPSG)):8371, Inverse of RGF93 to NGF IGN69 height (2), 0.02 m, France - mainland onshore
+
+PROJ string:
++proj=vgridshift +grids=RAF09.gtx +multiplier=1
+
+-------------------------------------
+Operation n°2:
+
+INVERSE(EPSG):8885, Inverse of RGF93 to NGF IGN69 height (3), 0.01 m, France - mainland onshore
+
+PROJ string:
++proj=pipeline +step +inv +proj=vgridshift +grids=RAF18.tac +multiplier=1
+
+-------------------------------------
+Operation n°3:
+
+INVERSE(EPSG):10000, Inverse of RGF93 to NGF IGN69 height (1), 0.5 m, France - mainland onshore
+
+PROJ string:
++proj=pipeline +step +inv +proj=vgridshift +grids=ggf97a.txt +multiplier=1
+