diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-04-15 23:50:39 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-04-16 17:47:18 +0200 |
| commit | 0cd2912037001129ba19a50a70ff4bf28a431082 (patch) | |
| tree | 84f23cd0cbef4c6b3201c72d86843e02f72970ad /test/gie | |
| parent | a8fdadfa3f726d110bdb964b3952d8c50a8d2f28 (diff) | |
| download | PROJ-0cd2912037001129ba19a50a70ff4bf28a431082.tar.gz PROJ-0cd2912037001129ba19a50a70ff4bf28a431082.zip | |
Implement an iterative inverse method for +proj=adams_ws2
Diffstat (limited to 'test/gie')
| -rw-r--r-- | test/gie/adams_ws2.gie | 59 |
1 files changed, 57 insertions, 2 deletions
diff --git a/test/gie/adams_ws2.gie b/test/gie/adams_ws2.gie index b6aafee7..134148da 100644 --- a/test/gie/adams_ws2.gie +++ b/test/gie/adams_ws2.gie @@ -1,7 +1,8 @@ <gie> ------------------------------------------------------------ -This gie file was automatically generated using libproject -where the adams_ws2 code was adapted from +This gie file was initially generated from "random" test points +got by using libproject where the adams_ws2 code was adapted from +It can be edited. ------------------------------------------------------------ ------------------------------------------------------------ @@ -2117,4 +2118,58 @@ expect failure errno -14 accept 180.2003062924 109.9750225424 expect failure errno -14 +------------------------------------------------------------------------------- +Test inverse +------------------------------------------------------------------------------- +operation +proj=adams_ws2 +ellps=WGS84 +------------------------------------------------------------------------------- +direction forward +tolerance 1 mm + +accept 0 0 +expect 0 0 +roundtrip 1 + +accept 40 60 +expect 2021909.611 4162291.966 +roundtrip 1 + +accept 179.999 0 +expect 16686159.356 0.000 +roundtrip 1 + +accept -179.999 0 +expect -16686159.356 0.000 +roundtrip 1 + +accept 0 89.999 +expect 0 15743336.122 +roundtrip 1 + +accept 0 -89.999 +expect 0 -15743336.122 +roundtrip 1 + +# Results a bit different on x86 +tolerance 3 mm +accept 179.999 89.999 +expect 693320.704 16030515.906 +roundtrip 1 + +accept 179.999 -89.999 +expect 693320.702 -16030515.904 +roundtrip 1 + +accept -179.999 89.999 +expect -693320.702 16030515.904 +roundtrip 1 + +accept -179.999 -89.999 +expect -693320.704 -16030515.906 +roundtrip 1 + +direction inverse +accept 0.000005801264 16722285.492330472916 +expect failure errno non_convergent + </gie> |
