aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSveinung Himle <56073535+himsve@users.noreply.github.com>2021-03-11 10:48:49 +0100
committerEven Rouault <even.rouault@spatialys.com>2021-03-23 15:52:34 +0100
commiteeb9fef28aed4f7e5d62d8c5064f96e1090ee348 (patch)
tree651ff0432c1be5325458cb3176f32cdd8474c65d /test
parent8e9239cfe4045a638d0f9e018cdb7d3f3f9622a5 (diff)
downloadPROJ-eeb9fef28aed4f7e5d62d8c5064f96e1090ee348.tar.gz
PROJ-eeb9fef28aed4f7e5d62d8c5064f96e1090ee348.zip
Database: Additions to the norwegian NKG2020 transformation (#2548), and NGO48 to ETRS89 TIN transfrm (#2554)
* Correction grid NKG:ETRF14 to EPSG:7922 * Added NKG:ITRF_TO_NO GIE test * Correction grid no_kv_NKGETRF14_EPSG7922_2000 added to grid_alternatives.sql * proj_method 'velocity_grid' added in check_grid_alternatives_proj_method. NKG velocity grid added to grid_alternatives.sql * also include follow-up fix to master #2548: e10a849cd01c5b15e3123da1f6df845006322843 * Add NGO48 (EPSG:4273) to ETRS89 (EPSG:4258) triangulation-based transformation (#2554) Co-authored-by: Even Rouault <even.rouault@spatialys.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/cli/testprojinfo4
-rw-r--r--test/cli/testprojinfo_out.dist5
-rw-r--r--test/gie/nkg.gie17
3 files changed, 26 insertions, 0 deletions
diff --git a/test/cli/testprojinfo b/test/cli/testprojinfo
index e11989cd..1e964a5b 100755
--- a/test/cli/testprojinfo
+++ b/test/cli/testprojinfo
@@ -275,6 +275,10 @@ echo 'Testing -s "ETRS89 / TM35FIN(E,N) + N2000 height" -t "KKJ / Finland Unifor
$EXE -s "ETRS89 / TM35FIN(E,N) + N2000 height" -t "KKJ / Finland Uniform Coordinate System + N43 height" --grid-check none -o PROJ -q >>${OUT} 2>&1
echo "" >>${OUT}
+# Quick check of NKG transformations
+echo 'Testing NKG: -s EPSG:7789 -t EPSG:4936 --area EPSG:1080 --summary --hide-ballpark' >> ${OUT}
+$EXE -s EPSG:7789 -t EPSG:4936 --area EPSG:1080 --summary --hide-ballpark >>${OUT} 2>&1
+echo "" >>${OUT}
# do 'diff' with distribution results
echo "diff ${OUT} with testprojinfo_out.dist"
diff --git a/test/cli/testprojinfo_out.dist b/test/cli/testprojinfo_out.dist
index dc5c5e9e..cc82c116 100644
--- a/test/cli/testprojinfo_out.dist
+++ b/test/cli/testprojinfo_out.dist
@@ -1525,3 +1525,8 @@ Testing -s "ETRS89 / TM35FIN(E,N) + N2000 height" -t "KKJ / Finland Uniform Coor
+step +inv +proj=tinshift +file=fi_nls_n43_n60.json
+step +proj=axisswap +order=2,1
+Testing NKG: -s EPSG:7789 -t EPSG:4936 --area EPSG:1080 --summary --hide-ballpark
+Candidate operations found: 1
+Note: using '--spatial-test intersects' would bring more results (2)
+NKG:ITRF2014_TO_DK, ITRF2014 to ETRS89(DK), 0.01 m, Denmark - onshore and offshore.
+
diff --git a/test/gie/nkg.gie b/test/gie/nkg.gie
index 7414914e..c4efcf75 100644
--- a/test/gie/nkg.gie
+++ b/test/gie/nkg.gie
@@ -201,6 +201,23 @@ tolerance 1 mm
accept 3541657.3778 948984.2343 5201383.5231 2020.5
expect 3541657.3671 948984.2412 5201383.5058 2020.5
+# 2020 Transformations
+
+operation operation urn:ogc:def:coordinateOperation:NKG::ITRF2014_TO_NO
+tolerance 0.1 mm
+
+# STAS
+accept 3275753.4135 321111.2481 5445042.2134 2020.0
+expect 3275753.9111 321110.8658 5445041.8822 2020.0
+
+# BOD3
+accept 2391773.9918 615615.1837 5860966.1279 2020.0
+expect 2391774.5535 615614.9100 5860965.8138 2020.0
+
+# KAUS
+accept 2107888.9134 895603.4769 5933242.6269 2020.0
+expect 2107889.5097 895603.2085 5933242.3152 2020.0
+
# -------------------------------------------------------------------------------
# SWEDEN