diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-08-29 13:59:17 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-08-29 14:06:25 +0200 |
| commit | 18b98b324f384dbf7ebe429a6907df06fcecee3f (patch) | |
| tree | 144b9dc75a4ae3f688b86812c6ca77d971a6cb34 /nad | |
| parent | 1ea7ff15668566695e9c5a5b6137a7c466ef61f4 (diff) | |
| download | PROJ-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 'nad')
| -rwxr-xr-x | nad/testvarious | 31 | ||||
| -rw-r--r-- | nad/tv_out.dist | 6 |
2 files changed, 37 insertions, 0 deletions
diff --git a/nad/testvarious b/nad/testvarious index c0a8ff29..c6a082c1 100755 --- a/nad/testvarious +++ b/nad/testvarious @@ -903,6 +903,37 @@ $EXE -f '%0.3f' \ 487147.594520173 4934316.46263998 EOF +echo "##############################################################" >> ${OUT} +echo "Test vto_meter" >> ${OUT} +# +$EXE -f '%0.3f' \ + +proj=longlat +a=1 +b=1 +vto_meter=1000 \ + +to +proj=longlat +a=1 +b=1 \ + -E >> ${OUT} <<EOF +0 0 1 +EOF + +$EXE -f '%0.3f' \ + +proj=merc +a=1 +b=1 +vto_meter=1000 \ + +to +proj=longlat +a=1 +b=1 \ + -E >> ${OUT} <<EOF +0 0 1 +EOF + +$EXE -f '%0.3f' \ + +proj=longlat +a=1 +b=1 \ + +to +proj=longlat +a=1 +b=1 +vto_meter=1000 \ + -E >> ${OUT} <<EOF +0 0 1000 +EOF + +$EXE -f '%0.3f' \ + +proj=longlat +a=1 +b=1 \ + +to +proj=merc +a=1 +b=1 +vto_meter=1000 \ + -E >> ${OUT} <<EOF +0 0 1000 +EOF + # Done! # do 'diff' with distribution results diff --git a/nad/tv_out.dist b/nad/tv_out.dist index f04e2c35..222c0c5f 100644 --- a/nad/tv_out.dist +++ b/nad/tv_out.dist @@ -448,3 +448,9 @@ Test patterson inverse projection ############################################################## Test Web Mercator to avoid issue #834 in the future 487147.594520173 4934316.46263998 -10370728.796 5552839.742 -0.000 +############################################################## +Test vto_meter +0 0 1 0.000 0.000 1000.000 +0 0 1 0.000 0.000 1000.000 +0 0 1000 0.000 0.000 1.000 +0 0 1000 0.000 0.000 1.000 |
