aboutsummaryrefslogtreecommitdiff
path: root/test/gie/ellipsoid.gie
blob: 120e407d4a805ae8b8fc06c0636016346d7e22d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
===============================================================================

Test pj_ellipsoid, the reimplementation of pj_ell_set

===============================================================================


BEGIN

-------------------------------------------------------------------------------
First a spherical example
-------------------------------------------------------------------------------
operation proj=merc R=6400000
-------------------------------------------------------------------------------
tolerance 10 nm
accept    1 2
expect    111701.0721276371  223447.5262032605

accept    12 55
expect    1340412.8655316452  7387101.1430967357
-------------------------------------------------------------------------------


-------------------------------------------------------------------------------
Then an explicitly defined ellipsoidal example
-------------------------------------------------------------------------------
operation proj=merc a=6400000 rf=297
-------------------------------------------------------------------------------
tolerance 10 nm
accept    1 2
expect    111701.0721276371  221945.9681832088

accept    12 55
expect    1340412.8655316452  7351803.9151705895
-------------------------------------------------------------------------------


-------------------------------------------------------------------------------
Then try using a built in ellipsoid
-------------------------------------------------------------------------------
operation proj=merc ellps=GRS80
-------------------------------------------------------------------------------
tolerance 10 nm
accept    1 2
expect    111319.4907932736  221194.0771604237

accept    12 55
expect    1335833.8895192828  7326837.7148738774
-------------------------------------------------------------------------------


-------------------------------------------------------------------------------
Then try to fail deliberately
-------------------------------------------------------------------------------
operation proj=merc ellps=GRS80000000000
expect    failure
operation proj=merc +a=-1
expect    failure
operation proj=merc +no_defs
expect    failure
operation proj=merc +es=-1 +no_defs
expect    failure
operation
expect    failure
operation cobra
expect    failure
-------------------------------------------------------------------------------


-------------------------------------------------------------------------------
Finally test the spherification functionality
-------------------------------------------------------------------------------
operation proj=merc ellps=GRS80 R_A
tolerance 10 nm
accept    12 55
expect    1334340.6237297705  7353636.6296552019
-------------------------------------------------------------------------------
operation proj=merc ellps=GRS80 R_V
tolerance 10 nm
accept    12 55
expect    1334339.2852675652  7353629.2533042720
-------------------------------------------------------------------------------
operation proj=merc ellps=GRS80 R_a
tolerance 10 nm
accept    12 55
expect    1333594.4904527504  7349524.6413825499
-------------------------------------------------------------------------------
operation proj=merc ellps=GRS80 R_g
tolerance 10 nm
accept    12 55
expect    1333592.6102291327  7349514.2793497816
-------------------------------------------------------------------------------
operation proj=merc ellps=GRS80 R_h
tolerance 10 nm
accept    12 55
expect    1333590.7300081658  7349503.9173316229
-------------------------------------------------------------------------------
operation proj=merc ellps=GRS80 R_lat_a=60
tolerance 10 nm
accept    12 55
expect    1338073.7436268919  7374210.0924803326
-------------------------------------------------------------------------------
operation proj=merc ellps=GRS80 R_lat_g=60
tolerance 10 nm
accept    12 55
expect    1338073.2696101593  7374207.4801437631
-------------------------------------------------------------------------------


-------------------------------------------------------------------------------
This one from testvarious failed at first version of the pull request
-------------------------------------------------------------------------------
operation  proj=healpix a=1 lon_0=0 ellps=WGS84
-------------------------------------------------------------------------------
accept     0 41.937853904844985
expect     0 0.78452
accept    -90 0
expect    -1.56904	0
-------------------------------------------------------------------------------

END