aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-06-22 10:46:26 +0200
committerGitHub <noreply@github.com>2018-06-22 10:46:26 +0200
commit722f22dc585b37766153a4da37b9a829ab5b8ff7 (patch)
tree1073c02abb4040011903d66f88b7eabdf57a2b0f /test
parent8ee389a6f44fb9ac0380ddbd3706b9354269d62f (diff)
parent5411bd30010b709a1482fa6a7073168f021dc627 (diff)
downloadPROJ-722f22dc585b37766153a4da37b9a829ab5b8ff7.tar.gz
PROJ-722f22dc585b37766153a4da37b9a829ab5b8ff7.zip
Merge pull request #1054 from rouault/add_angular_units_to_unitconvert
Add support for deg, rad and grad in unitconvert (fixes #1052), and document that it supports numeric factors (refs #1053)
Diffstat (limited to 'test')
-rw-r--r--test/gie/unitconvert.gie18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/gie/unitconvert.gie b/test/gie/unitconvert.gie
index 30d9dc0b..7bbea49d 100644
--- a/test/gie/unitconvert.gie
+++ b/test/gie/unitconvert.gie
@@ -25,4 +25,22 @@ tolerance 0.1
accept 1 1 1 1
expect 0.5 0.5 1 1
+operation proj=unitconvert xy_in=deg xy_out=rad
+tolerance 0.000000000001
+accept 1 1 1 1
+expect 0.017453292519943296 0.017453292519943296 1 1
+
+operation proj=unitconvert xy_in=grad xy_out=deg
+tolerance 0.000000000001
+accept 50 50 1 1
+expect 45 45 1 1
+
+operation proj=unitconvert xy_in=m xy_out=rad
+accept 1 1 1 1
+expect failure
+
+operation proj=unitconvert z_in=rad z_out=m
+accept 1 1 1 1
+expect failure
+
</gie>