aboutsummaryrefslogtreecommitdiff
path: root/test/gie
diff options
context:
space:
mode:
authorThomas Knudsen <thokn@sdfe.dk>2018-02-10 18:31:16 +0100
committerThomas Knudsen <thokn@sdfe.dk>2018-02-10 18:31:16 +0100
commit75fca1c0e2fdd58d997ff962936888b6f983e8ec (patch)
treecbb0283b16e8e2dc8ebe7c79dfee6bc22d2e065d /test/gie
parent357af968915f4d1300b14fbd1e9188318d15399f (diff)
downloadPROJ-75fca1c0e2fdd58d997ff962936888b6f983e8ec.tar.gz
PROJ-75fca1c0e2fdd58d997ff962936888b6f983e8ec.zip
Update a few gie tests
Diffstat (limited to 'test/gie')
-rw-r--r--test/gie/4D-API_cs2cs-style.gie37
-rw-r--r--test/gie/GDA.gie2
-rw-r--r--test/gie/more_builtins.gie19
3 files changed, 34 insertions, 24 deletions
diff --git a/test/gie/4D-API_cs2cs-style.gie b/test/gie/4D-API_cs2cs-style.gie
index 4cace784..2b7a851d 100644
--- a/test/gie/4D-API_cs2cs-style.gie
+++ b/test/gie/4D-API_cs2cs-style.gie
@@ -52,22 +52,18 @@ expect 16.8210462130 55.1705688946 29.0317
-
-------------------------------------------------------------------------------
-# operation proj=latlong nadgrids=nzgd2kgrid0005.gsb ellps=GRS80
+operation proj=latlong nadgrids=nzgd2kgrid0005.gsb ellps=GRS80
-------------------------------------------------------------------------------
-Note: This test appears to use wrong coordinate data, and is commented out.
-We need a set of authoritative test cases to test the nzgd2000 grid.
-
-This functionality is sufficiently tested in DHDN_ETRS89.gie
+This functionality is also tested in DHDN_ETRS89.gie
-------------------------------------------------------------------------------
-# tolerance 1 um
-# ignore pjd_err_failed_to_load_grid
-# accept 173 -45 0 0
-# expect 172.999892181021551 -45.001620431954613 0 0
-# direction inverse
-# accept 172.999892181021551 -45.001620431954613 0 0
-# expect 173 -45 0 0
+tolerance 1 mm
+ignore pjd_err_failed_to_load_grid
+accept 173 -45
+expect 172.999892181021551 -45.001620431954613
+direction inverse
+accept 172.999892181021551 -45.001620431954613
+expect 173 -45
-------------------------------------------------------------------------------
@@ -161,4 +157,19 @@ expect -7424275.1946 -36.0213 1391493.6349 0.0000
# accept -7424275.1946 -36.0213 1391493.6349 0.0000
# expect 12.5 55.5 0
-------------------------------------------------------------------------------
+
+
+
+-------------------------------------------------------------------------------
+A test point from a comment by Github user c0nk
+-------------------------------------------------------------------------------
+operation proj=somerc
+ lat_0=46.95240555555556 lon_0=7.439583333333333 k_0=1
+ x_0=2600000 y_0=1200000 ellps=bessel
+ towgs84=674.374,15.056,405.346
+-------------------------------------------------------------------------------
+tolerance 20 cm # lax tolerance due to widely distributed, bad egm96 file
+accept 7.438632495 46.951082877
+expect 2600000.0 1200000.0
+-------------------------------------------------------------------------------
</gie>
diff --git a/test/gie/GDA.gie b/test/gie/GDA.gie
index e20cc88c..ea975bb6 100644
--- a/test/gie/GDA.gie
+++ b/test/gie/GDA.gie
@@ -50,7 +50,7 @@ operation proj = pipeline ellps=GRS80;
z = -0.04019; rz = -0.0328979; s = -0.009994;
step proj = cart inv;
-----------------------------------------------------------------------------------
-tolerance 1.1 mm
+tolerance 2 mm
accept 133.88551329 -23.67012389 603.3466 0 # Alice Springs GDA94
expect 133.8855216 -23.67011014 603.2489 0 # Alice Springs GDA2020
-------------------------------------------------------------------------------
diff --git a/test/gie/more_builtins.gie b/test/gie/more_builtins.gie
index 5defb4e3..d7074c5b 100644
--- a/test/gie/more_builtins.gie
+++ b/test/gie/more_builtins.gie
@@ -211,23 +211,22 @@ expect failure errno failed_to_load_grid
-------------------------------------------------------------------------------
Some tests from PJ_hgridshift.c
-------------------------------------------------------------------------------
-# operation proj=hgridshift +grids=nzgd2kgrid0005.gsb ellps=GRS80
+operation proj=hgridshift +grids=nzgd2kgrid0005.gsb ellps=GRS80
-------------------------------------------------------------------------------
-Note: This test appears to use wrong coordinate data, and is commented out.
+Note: These data are home grown and suitable for regression testing only
We need a set of authoritative test cases to test the nzgd2000 grid.
-------------------------------------------------------------------------------
-# tolerance 1 um
-# ignore pjd_err_failed_to_load_grid
-# accept 173 -45 0 0
-# expect 172.999892181021551 -45.001620431954613 0 0
-# direction inverse
-# accept 172.999892181021551 -45.001620431954613 0 0
-# expect 173 -45 0 0
+tolerance 1 mm
+ignore pjd_err_failed_to_load_grid
+accept 172.999892181021551 -45.001620431954613
+expect 173 -45
+direction inverse
+accept 173 -45
+expect 172.999892181021551 -45.001620431954613
-------------------------------------------------------------------------------
-
-------------------------------------------------------------------------------
# Fail on purpose: open non-existing grid:
operation proj=hgridshift grids=@nonexistinggrid.gsb,anothernonexistinggrid.gsb