aboutsummaryrefslogtreecommitdiff
path: root/test/gie/4D-API_cs2cs-style.gie
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-08-29 13:59:17 +0200
committerEven Rouault <even.rouault@spatialys.com>2018-08-29 14:06:25 +0200
commit18b98b324f384dbf7ebe429a6907df06fcecee3f (patch)
tree144b9dc75a4ae3f688b86812c6ca77d971a6cb34 /test/gie/4D-API_cs2cs-style.gie
parent1ea7ff15668566695e9c5a5b6137a7c466ef61f4 (diff)
downloadPROJ-18b98b324f384dbf7ebe429a6907df06fcecee3f.tar.gz
PROJ-18b98b324f384dbf7ebe429a6907df06fcecee3f.zip
4D API: honour vto_meter / vunits for proj=longlat
This worked for cs2cs / pj_transform(), but not the new API
Diffstat (limited to 'test/gie/4D-API_cs2cs-style.gie')
-rw-r--r--test/gie/4D-API_cs2cs-style.gie29
1 files changed, 29 insertions, 0 deletions
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
+
</gie>