diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-12-04 23:52:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-04 23:52:23 +0100 |
| commit | f3c51143b5b434829a841d93ae57b6583c2a2ff1 (patch) | |
| tree | 906f9344db18f62cc2c3316555f75766c6ff1c92 /test/cli/testvarious | |
| parent | fe2c5e04d5e395d01e8628361ac957f5a7e466bb (diff) | |
| parent | 18ab7ef2e357e0c01464848a6911e754ebca471f (diff) | |
| download | PROJ-f3c51143b5b434829a841d93ae57b6583c2a2ff1.tar.gz PROJ-f3c51143b5b434829a841d93ae57b6583c2a2ff1.zip | |
Merge pull request #2477 from rouault/fix_2442
cs2cs / proj_create_crs_to_crs_from_pj(): add a --authority switch to control where coordinate operations are looked for (fixes #2442)
Diffstat (limited to 'test/cli/testvarious')
| -rwxr-xr-x | test/cli/testvarious | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/cli/testvarious b/test/cli/testvarious index 292ee316..82be4992 100755 --- a/test/cli/testvarious +++ b/test/cli/testvarious @@ -1009,6 +1009,19 @@ $EXE -f %.3f EPSG:4686 EPSG:6247 -E >> ${OUT} <<EOF 4.8 -74.25 EOF +echo "##############################################################" >> ${OUT} +echo "Test effect of --authority (https://github.com/OSGeo/PROJ/issues/2442)" >> ${OUT} +echo "This test might be a bit fragile if proj.db content changes" >> ${OUT} +echo "The first result should use the 'WGS_1984_(ITRF08)_To_NAD_1983_2011' (ESRI:108363) operation" >> ${OUT} +echo "and the second one a no-op" >> ${OUT} +$EXE -E +proj=latlong +datum=WGS84 +no_defs +to +init=epsg:6342 >> ${OUT} <<EOF +-105 40 +EOF +$EXE --authority EPSG -E +proj=latlong +datum=WGS84 +no_defs +to +init=epsg:6342 >> ${OUT} <<EOF +-105 40 +EOF + + # Done! # do 'diff' with distribution results echo "diff ${OUT} with ${OUT}.dist" |
