From 2ac8170863c56de3f7995ac25e74c6fab8aaacad Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sun, 11 Apr 2021 22:38:03 +0200 Subject: projinfo --list-crs --area: make it work when multiple areas matches the specified name --- test/cli/testprojinfo | 5 +++++ test/cli/testprojinfo_out.dist | 3 +++ 2 files changed, 8 insertions(+) (limited to 'test') diff --git a/test/cli/testprojinfo b/test/cli/testprojinfo index 0ee256a2..ce8cd762 100755 --- a/test/cli/testprojinfo +++ b/test/cli/testprojinfo @@ -362,6 +362,11 @@ echo 'Testing --list-crs projected --bbox -100,40,-90,41 --spatial-test intersec $EXE --list-crs projected --bbox -100,40,-90,41 --spatial-test intersects | grep "(2011).*Missouri East\|York" | sort >> ${OUT} echo "" >>${OUT} +# Test case where --area has several matches +echo 'Testing --list-crs projected --area France | grep "RGF93 / Lambert-93\|UTM zone 11N" | sort' >> ${OUT} +$EXE --list-crs projected --area France | grep "RGF93 / Lambert-93\|UTM zone 11N" | sort >> ${OUT} +echo "" >>${OUT} + # do 'diff' with distribution results echo "diff ${OUT} with testprojinfo_out.dist" diff -u ${OUT} ${TEST_CLI_DIR}/testprojinfo_out.dist diff --git a/test/cli/testprojinfo_out.dist b/test/cli/testprojinfo_out.dist index 3f549fd9..4f48b222 100644 --- a/test/cli/testprojinfo_out.dist +++ b/test/cli/testprojinfo_out.dist @@ -1654,3 +1654,6 @@ ESRI:104010 "GCS_IGS08" [deprecated] Testing --list-crs projected --bbox -100,40,-90,41 --spatial-test intersects | grep "(2011).*Missouri East\|York" | sort EPSG:6512 "NAD83(2011) / Missouri East" +Testing --list-crs projected --area France | grep "RGF93 / Lambert-93\|UTM zone 11N" | sort +EPSG:2154 "RGF93 / Lambert-93" + -- cgit v1.2.3