aboutsummaryrefslogtreecommitdiff
path: root/test/cli
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-06-18 14:24:38 +0200
committerGitHub <noreply@github.com>2021-06-18 14:24:38 +0200
commita79b5558da1a391a9d7418316c9f507583d41b2a (patch)
treefad8a3d7e89f21d9581b6404ec370b0865b989eb /test/cli
parent987c8e9a4521c3e80fac73dbaa76ff77747d854b (diff)
parent916eaa4349e2f46320d49ae0f9d2993d98a8335d (diff)
downloadPROJ-a79b5558da1a391a9d7418316c9f507583d41b2a.tar.gz
PROJ-a79b5558da1a391a9d7418316c9f507583d41b2a.zip
Merge pull request #2750 from rouault/better_operation_selection
proj_trans/cs2cs: If two operations have the same accuracy, use the one that is contained within a larger one
Diffstat (limited to 'test/cli')
-rwxr-xr-xtest/cli/testvarious6
-rw-r--r--test/cli/tv_out.dist3
2 files changed, 9 insertions, 0 deletions
diff --git a/test/cli/testvarious b/test/cli/testvarious
index e88cf68b..6e9cd43c 100755
--- a/test/cli/testvarious
+++ b/test/cli/testvarious
@@ -1047,6 +1047,12 @@ $EXE -E EPSG:2636 "WGS 84" >> ${OUT} <<EOF
5540944.47 500000.001
EOF
+echo "##############################################################" >> ${OUT}
+echo "Check that we select the operation that has the smallest area of use, when 2 have the same accuracy" >> ${OUT}
+$EXE -E EPSG:4326 "NAD83(HARN)" >> ${OUT} <<EOF
+34 -120
+EOF
+
# Done!
# do 'diff' with distribution results
diff --git a/test/cli/tv_out.dist b/test/cli/tv_out.dist
index 44926677..9bb85933 100644
--- a/test/cli/tv_out.dist
+++ b/test/cli/tv_out.dist
@@ -504,3 +504,6 @@ Check that we can use a transformation spanning the antimeridian (should use Pul
Check that we can use a transformation spanning the antimeridian (should use Pulkovo 1942 to WGS 84 (20))
5540944.47 499999.999 49d59'59.36"N 179d59'52.133"W 0.000
5540944.47 500000.001 49d59'59.36"N 179d59'52.133"W 0.000
+##############################################################
+Check that we select the operation that has the smallest area of use, when 2 have the same accuracy
+34 -120 33d59'59.983"N 119d59'59.955"W 0.000