aboutsummaryrefslogtreecommitdiff
path: root/test/gie/builtins.gie
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-04-14 17:17:55 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-04-15 01:07:18 +0200
commit964569728722e9e91f152410a4747a0ba078bd84 (patch)
tree54369133947916e20bbe9004eb16857f3f1b72cd /test/gie/builtins.gie
parent5b017a8a78acc1f8b086ae339ecec257ee9d9684 (diff)
downloadPROJ-964569728722e9e91f152410a4747a0ba078bd84.tar.gz
PROJ-964569728722e9e91f152410a4747a0ba078bd84.zip
tmerc/utm: add a +algo=auto/evenden_snyder/poder_engsager parameter
The default remains +alg=poder_engsager. This default value can be changed in proj.ini +algo=auto will use Evenden Synder implementation if the error in doing so remains below 0.1 mm on Earth-sized ellipsoid
Diffstat (limited to 'test/gie/builtins.gie')
-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 1c5eb3be..272e0655 100644
--- a/test/gie/builtins.gie
+++ b/test/gie/builtins.gie
@@ -5365,7 +5365,6 @@ expect -0.001790493 0.000895247
accept -200 -100
expect -0.001790493 -0.000895247
-
-------------------------------------------------------------------------------
operation +proj=tmerc +R=1
-------------------------------------------------------------------------------
@@ -5373,6 +5372,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