From 4e36fd85b9bd9f80c83d7f262c5a8fb3ae44cde2 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 21 Jun 2018 22:43:14 +0200 Subject: Add support for deg, rad and grad in unitconvert (fixes #1052), and document that it supports numeric factors (refs #1053) --- test/gie/unitconvert.gie | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test') diff --git a/test/gie/unitconvert.gie b/test/gie/unitconvert.gie index 30d9dc0b..ff6dc96f 100644 --- a/test/gie/unitconvert.gie +++ b/test/gie/unitconvert.gie @@ -25,4 +25,15 @@ 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 + + -- cgit v1.2.3