aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-04-16 19:57:52 +0200
committerGitHub <noreply@github.com>2020-04-16 19:57:52 +0200
commit115c3db6bf66cc9b580f035c84b2d4626b787734 (patch)
tree667ed856eacadb4c3aa993b9fd3ad8906815739f /test
parentff8258bcdc996522a6059a8134c994487372008a (diff)
parent964569728722e9e91f152410a4747a0ba078bd84 (diff)
downloadPROJ-115c3db6bf66cc9b580f035c84b2d4626b787734.tar.gz
PROJ-115c3db6bf66cc9b580f035c84b2d4626b787734.zip
Merge pull request #2030 from rouault/auto_sel_of_tmerc_alg
tmerc/utm: add a +algo=auto/evenden_snyder/poder_engsager parameter
Diffstat (limited to 'test')
-rw-r--r--test/gie/builtins.gie97
1 files changed, 96 insertions, 1 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie
index 24c5ac35..5b4d496d 100644
--- a/test/gie/builtins.gie
+++ b/test/gie/builtins.gie
@@ -5368,7 +5368,6 @@ expect -0.001790493 0.000895247
accept -200 -100
expect -0.001790493 -0.000895247
-
-------------------------------------------------------------------------------
operation +proj=tmerc +R=1
-------------------------------------------------------------------------------
@@ -5376,6 +5375,102 @@ direction inverse
accept -1e200 0
expect failure errno invalid_x_or_y
+
+===============================================================================
+Test Transverse Mercator +algo
+===============================================================================
+
+-------------------------------------------------------------------------------
+operation +proj=tmerc +ellps=GRS80 +algo=auto
+# We show that the values are the same as poder_engsager within 0.1 mm
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+
+accept 2.9 0
+expect 322965.3802 0.0000
+roundtrip 1
+
+accept 2.9 40
+expect 247660.7575 4433559.6623
+roundtrip 1
+
+accept 2.9 85
+expect 28218.2464 9444221.7042
+roundtrip 1
+
+accept 6 0
+expect 669149.3483 0.0000
+roundtrip 1
+
+accept 6 40
+expect 512526.6344 4446813.3655
+roundtrip 1
+
+accept 6 85
+expect 58302.0560 9446554.0371
+roundtrip 1
+
+-------------------------------------------------------------------------------
+operation +proj=tmerc +ellps=GRS80 +algo=poder_engsager
+# Same values as above
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+
+accept 2.9 0
+expect 322965.3802 0.0000
+roundtrip 1
+
+accept 2.9 40
+expect 247660.7575 4433559.6623
+roundtrip 1
+
+accept 2.9 85
+expect 28218.2464 9444221.7042
+roundtrip 1
+
+accept 6 0
+expect 669149.3483 0.0000
+roundtrip 1
+
+accept 6 40
+expect 512526.6344 4446813.3655
+roundtrip 1
+
+accept 6 85
+expect 58302.0560 9446554.0371
+roundtrip 1
+
+-------------------------------------------------------------------------------
+operation +proj=tmerc +ellps=GRS80 +algo=evenden_snyder
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+
+accept 2.9 0
+expect 322965.3802 0.0000
+roundtrip 1
+
+accept 2.9 40
+expect 247660.7575 4433559.6623
+roundtrip 1
+
+accept 2.9 85
+expect 28218.2464 9444221.7042
+roundtrip 1
+
+# Small difference with poder_engsager
+accept 6 0
+expect 669149.3474 0.0000
+#roundtrip 1
+
+# Small difference with poder_engsager
+accept 6 40
+expect 512526.6346 4446813.3655
+#roundtrip 1
+
+accept 6 85
+expect 58302.0560 9446554.0371
+roundtrip 1
+
===============================================================================
Tobler-Mercator
Cyl, Sph