diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-06-25 15:24:02 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2018-06-26 14:59:39 +0200 |
| commit | 4e6b366e07960b19ae4c10b84c527bc2a7028337 (patch) | |
| tree | 9d7f9a71c7862048ce53d02d8fe50bb5649a8688 /test | |
| parent | 5c192b091fd5bf35742a34052fb53fcb3c276fd7 (diff) | |
| download | PROJ-4e6b366e07960b19ae4c10b84c527bc2a7028337.tar.gz PROJ-4e6b366e07960b19ae4c10b84c527bc2a7028337.zip | |
Add inverse lagrange projection
Courtesy of Michael Stumpf <mi12st34@gmail.com>
Diffstat (limited to 'test')
| -rw-r--r-- | test/gie/builtins.gie | 57 |
1 files changed, 48 insertions, 9 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie index be491346..3e2059c1 100644 --- a/test/gie/builtins.gie +++ b/test/gie/builtins.gie @@ -2418,15 +2418,54 @@ Lagrange ------------------------------------------------------------------------------- operation +proj=lagrng +a=6400000 +W=2 +lat_1=0.5 +lat_2=2 ------------------------------------------------------------------------------- -tolerance 0.1 mm -accept 2 1 -expect 111703.375917226 27929.831908033 -accept 2 -1 -expect 111699.122088816 -83784.178013358 -accept -2 1 -expect -111703.375917226 27929.831908033 -accept -2 -1 -expect -111699.122088816 -83784.178013358 +tolerance 0.1 mm +accept 2 1 +expect 111703.375917226 27929.831908033 + +roundtrip 100 +accept 2 -1 +expect 111699.122088816 -83784.178013358 +roundtrip 100 + +accept -2 1 +expect -111703.375917226 27929.831908033 +roundtrip 100 + +accept -2 -1 +expect -111699.122088816 -83784.178013358 +roundtrip 100 + +accept 0 90 +expect 0.0000 12800000.0 +roundtrip 100 + +------------------------------------------------------------------------------- +operation +proj=lagrng +R=1 +lat_1=56 +------------------------------------------------------------------------------- +tolerance 1 cm +accept 12 56 +expect 0.10 0.0 + +------------------------------------------------------------------------------- +operation +proj=lagrng +R=1 +W=-1 +------------------------------------------------------------------------------- +expect failure errno w_or_m_zero_or_less + +------------------------------------------------------------------------------- +operation +proj=lagrng +R=1 +lat_1=90.00001 +------------------------------------------------------------------------------- +expect failure errno lat_larger_than_90 + +------------------------------------------------------------------------------- +operation +proj=lagrng +R=1 +W=0.5 +------------------------------------------------------------------------------- +accept 90 0 0 +expect failure errno tolerance_condition + +direction inverse +accept 2 0 0 +expect failure errno tolerance_condition + =============================================================================== |
