diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-10-15 14:17:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-15 14:17:31 +0200 |
| commit | 117a3f41c02db4e1413617a948a34083c325c3ea (patch) | |
| tree | 49f5513d581006179c007daf1d4daa72bb48f7f3 /test | |
| parent | 0da84e275504edbdc8b62ebf77d2480ad086b62d (diff) | |
| parent | f2b8a5e8a43d119aa66bccc0b0cac3ebbf828bd4 (diff) | |
| download | PROJ-117a3f41c02db4e1413617a948a34083c325c3ea.tar.gz PROJ-117a3f41c02db4e1413617a948a34083c325c3ea.zip | |
Merge pull request #1153 from sphynx/tobler-mercator
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 |
