blob: 95264c828c1e46332769181021ca0ad5b629ce3b (
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
122
123
124
|
-------------------------------------------------------------------------------
===============================================================================
Test +proj=defmodel
===============================================================================
<gie-strict>
# Missing +model
operation +proj=defmodel
expect failure errno invalid_op_missing_arg
# +model doesn't point to an existing file
operation +proj=defmodel +model=i_do_not_exist
expect failure errno invalid_op_file_not_found_or_invalid
# Not a JSON file
operation +proj=defmodel +model=proj.ini
expect failure errno invalid_op_file_not_found_or_invalid
# Horizontal deformation with horizontal unit = degree
operation +proj=defmodel +model=tests/simple_model_degree_horizontal.json
tolerance 0.1 mm
accept 2 49 30 2020
expect 3 51 30 2020
roundtrip 1
# 3D deformation with horizontal unit = degree
operation +proj=defmodel +model=tests/simple_model_degree_3d.json
tolerance 0.1 mm
accept 2 49 30 2020
expect 3 51 33 2020
roundtrip 1
# Horizontal deformation with horizontal unit = metre
operation +proj=pipeline +step +inv +proj=merc +step +proj=defmodel +model=tests/simple_model_metre_horizontal.json +step +proj=merc
tolerance 0.1 mm
accept 10 20 30 2020
expect 11 22 30 2020
roundtrip 1
# 3D deformation with horizontal unit = metre
operation +proj=pipeline +step +inv +proj=merc +step +proj=defmodel +model=tests/simple_model_metre_3d.json +step +proj=merc
tolerance 0.1 mm
accept 10 20 30 2020
expect 11 22 33 2020
roundtrip 1
# 3D deformation with horizontal unit = metre and a projeced grid
operation +proj=pipeline +step +proj=defmodel +model=tests/simple_model_projected.json
tolerance 0.1 mm
accept 1500200.0 5400400.0 30 2020
expect 1500200.588 5400399.722 30.6084 2020
roundtrip 1
# South-west corner
accept 1500000.0 5400000.0 30 2020
expect 1500000.4 5399999.8 30.84 2020
roundtrip 1
# South-east corner
accept 1501000.0 5400000.0 30 2020
expect 1501000.5 5399999.75 30.75 2020
roundtrip 1
# North-west corner
accept 1500000.0 5401000.0 30 2020
expect 1500000.8 5400999.6 30.36 2020
roundtrip 1
# North-east corner
accept 1501000.0 5401000.0 30 2020
expect 1501001.0 5400999.7 30 2020
roundtrip 1
# Test geocentric addition of components
operation +proj=pipeline +step +inv +proj=merc +step +proj=defmodel +model=tests/simple_model_metre_3d_geocentric.json +step +proj=merc
tolerance 0.1 mm
accept 10 20 30 2020
expect 11 22 33 2020
roundtrip 1
# Vertical deformation with vertical unit = metre
operation +proj=defmodel +model=tests/simple_model_metre_vertical.json
tolerance 0.1 mm
accept 2 49 30 2020
expect 2 49 33 2020
roundtrip 1
# Adjust for 360 degree longitude offsets
operation +proj=defmodel +model=tests/simple_model_metre_vertical.json
tolerance 0.1 mm
accept 362 49 30 2020
expect 2 49 33 2020
operation +proj=defmodel +model=tests/simple_model_wrap_east.json
accept 165.9 -37.3 10 2020
expect 165.9 -37.3 10.4525 2020
operation +proj=defmodel +model=tests/simple_model_wrap_west.json
accept 165.9 -37.3 10 2020
expect 165.9 -37.3 10.4525 2020
# Test geocentric bilinear interpolation method
operation +proj=defmodel +model=tests/simple_model_polar.json
tolerance 0.1 mm
accept 20 -90 15 2020
expect 27.4743245365 -89.9999747721 18.0000 2020
accept 120 -90 15 2020
expect 27.4737934098 -89.9999747718 18.0000 2020
accept 235 -89.5 15 2020
expect -124.9986638571 -89.5000223708 17.3750 2020
accept 45 -89.5 15 2020
expect 44.9991295392 -89.4999759438 18.5469 2020
</gie-strict>
|