From 18b98b324f384dbf7ebe429a6907df06fcecee3f Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 29 Aug 2018 13:59:17 +0200 Subject: 4D API: honour vto_meter / vunits for proj=longlat This worked for cs2cs / pj_transform(), but not the new API --- test/gie/4D-API_cs2cs-style.gie | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'test/gie/4D-API_cs2cs-style.gie') diff --git a/test/gie/4D-API_cs2cs-style.gie b/test/gie/4D-API_cs2cs-style.gie index 20aa04c6..346f2d36 100644 --- a/test/gie/4D-API_cs2cs-style.gie +++ b/test/gie/4D-API_cs2cs-style.gie @@ -337,4 +337,33 @@ accept 90 0 0 expect 0 1 0 roundtrip 1 +------------------------------------------------------------------------------- +Check that vunits / vto_meter is honored +------------------------------------------------------------------------------- + +operation +proj=longlat +a=1 +b=1 +vto_meter=1000 +accept 0 0 1000 +expect 0 0 1 +roundtrip 1 + +operation +proj=longlat +a=1 +b=1 +vto_meter=1000 +geoc +accept 0 0 1000 +expect 0 0 1 +roundtrip 1 + +operation +proj=longlat +a=1 +b=1 +vunits=km +accept 0 0 1000 +expect 0 0 1 +roundtrip 1 + +operation +proj=merc +a=1 +b=1 +vto_meter=1000 +accept 0 0 1000 +expect 0 0 1 +roundtrip 1 + +operation +proj=merc +a=1 +b=1 +vunits=km +accept 0 0 1000 +expect 0 0 1 +roundtrip 1 + -- cgit v1.2.3