diff options
| author | Ivan Veselov <veselov@gmail.com> | 2018-10-15 10:58:53 +0100 |
|---|---|---|
| committer | Ivan Veselov <veselov@gmail.com> | 2018-10-15 10:58:53 +0100 |
| commit | f2b8a5e8a43d119aa66bccc0b0cac3ebbf828bd4 (patch) | |
| tree | b1d92eca9293b98f5c48bc8bf5bd0a400f21fbf4 /test | |
| parent | 249588acd5dddafcd0ae33a0ae6dfc5431dea4bc (diff) | |
| download | PROJ-f2b8a5e8a43d119aa66bccc0b0cac3ebbf828bd4.tar.gz PROJ-f2b8a5e8a43d119aa66bccc0b0cac3ebbf828bd4.zip | |
Add Tobler-Mercator projection
Diffstat (limited to 'test')
| -rw-r--r-- | test/gie/builtins.gie | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie index 955b5b51..f4e15a77 100644 --- a/test/gie/builtins.gie +++ b/test/gie/builtins.gie @@ -4897,6 +4897,72 @@ expect -0.001790493 0.000895247 accept -200 -100 expect -0.001790493 -0.000895247 +=============================================================================== +Tobler-Mercator + Cyl, Sph +=============================================================================== + +------------------------------------------------------------------------------- +operation +proj=tobmerc +ellps=sphere +------------------------------------------------------------------------------- +tolerance 0.1 mm +accept 2 1 +expect 222322.011656333081 111200.520030584055 +accept 2 -1 +expect 222322.011656333081 -111200.520030584463 +accept -2 1 +expect -222322.011656333081 111200.520030584055 +accept -2 -1 +expect -222322.011656333081 -111200.520030584463 + +accept 2 75 +expect 14897.288383530242 12917766.123520378023 +accept 2 80 +expect 6705.871450149517 15521316.299485698342 +accept -2 -75 +expect -14897.288383530242 -12917766.123520381749 +accept -2 -80 +expect -6705.871450149517 -15521316.299485692754 + +direction inverse +accept 200 100 +expect 0.001798644059 0.000899322029 +accept 200 -100 +expect 0.001798644059 -0.000899322029 +accept -200 100 +expect -0.001798644059 0.000899322029 +accept -200 -100 +expect -0.001798644059 -0.000899322029 + +accept 14897.288383530242 12917766.123520378023 +expect 2 75 +accept 6705.871450149517 15521316.299485698342 +expect 2 80 +accept -14897.288383530242 -12917766.123520381749 +expect -2 -75 +accept -6705.871450149517 -15521316.299485692754 +expect -2 -80 + +------------------------------------------------------------------------------- +operation +proj=tobmerc +R=1 +------------------------------------------------------------------------------- +Test the numerical stability of the inverse spherical Tobler-Mercator +------------------------------------------------------------------------------- +tolerance 1e-15 m +accept 0 1e-15 +expect 0 1e-15 + +------------------------------------------------------------------------------- +operation +proj=tobmerc +ellps=sphere +------------------------------------------------------------------------------- +Test expected failure at the poles: +------------------------------------------------------------------------------- +accept 0 90 +expect failure errno tolerance_condition + +accept 0 -90 +expect failure errno tolerance_condition + =============================================================================== Two Point Equidistant |
