diff options
| author | Javier Jimenez Shaw <j1@jimenezshaw.com> | 2021-04-11 21:44:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-11 21:44:52 +0200 |
| commit | 78792a7e42928565b06398f146a43d121160b8a2 (patch) | |
| tree | 21cbfd26b8010feb67dc86e879282455ec5d9daa /test/cli/testprojinfo | |
| parent | 6fffba7efa94fe989ec023294850aeca6b2cd5c6 (diff) | |
| download | PROJ-78792a7e42928565b06398f146a43d121160b8a2.tar.gz PROJ-78792a7e42928565b06398f146a43d121160b8a2.zip | |
projinfo: add option --list-crs (#2663)
Diffstat (limited to 'test/cli/testprojinfo')
| -rwxr-xr-x | test/cli/testprojinfo | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/test/cli/testprojinfo b/test/cli/testprojinfo index fb4fef1f..0ee256a2 100755 --- a/test/cli/testprojinfo +++ b/test/cli/testprojinfo @@ -310,6 +310,58 @@ echo 'Checks that ED50 to ETRS89 (12) is in the output (superseded transformatio $EXE -s EPSG:23030 -t EPSG:25830 --bbox -6,40,-5,41 --grid-check known_available --hide-ballpark --summary >>${OUT} 2>&1 echo "" >>${OUT} +echo 'Testing --list-crs | grep "EPSG:32632\|ESRI:103668\|OGC" | sort' >> ${OUT} +$EXE --list-crs | grep "EPSG:32632\|ESRI:103668\|OGC" | sort >> ${OUT} +echo "" >>${OUT} + +echo 'Testing --list-crs --authority OGC,EPSG | grep "EPSG:4326\|OGC" | sort' >> ${OUT} +$EXE --list-crs --authority OGC,EPSG | grep "EPSG:4326\|OGC" | sort >> ${OUT} +echo "" >>${OUT} + +echo 'Testing --list-crs | grep deprecated | sort' >> ${OUT} +$EXE --list-crs | grep deprecated | sort >> ${OUT} +echo "" >>${OUT} + +echo 'Testing --list-crs vertical --bbox 0,40,1,41 --spatial-test intersects | grep "Alicante\|NAVD88" | sort' >> ${OUT} +$EXE --list-crs vertical --bbox 0,40,1,41 --spatial-test intersects | grep "Alicante\|NAVD88" | sort >> ${OUT} +echo "" >>${OUT} + +echo 'Testing --list-crs vertical --bbox -10,35,5,45 --spatial-test contains | grep "Alicante\|NAVD88" | sort' >> ${OUT} +$EXE --list-crs vertical --bbox -10,35,5,45 --spatial-test contains | grep "Alicante\|NAVD88" | sort >> ${OUT} +echo "" >>${OUT} + +echo 'Testing --list-crs --area Spain --spatial-test intersects | grep "EPSG:9505\|EPSG:9398\|EPSG:4258\|EPSG:5703" | sort' >> ${OUT} +$EXE --list-crs --area Spain --spatial-test intersects | grep "EPSG:9505\|EPSG:9398\|EPSG:4258\|EPSG:5703" | sort >> ${OUT} +echo "" >>${OUT} + +echo 'Testing --list-crs --area Spain --spatial-test contains | grep "EPSG:9505\|EPSG:9398\|EPSG:4258\|EPSG:5703" | sort' >> ${OUT} +$EXE --list-crs --area Spain --spatial-test contains | grep "EPSG:9505\|EPSG:9398\|EPSG:4258\|EPSG:5703" | sort >> ${OUT} +echo "" >>${OUT} + +echo 'Testing --list-crs --area Spain | grep "EPSG:9505\|EPSG:9398\|EPSG:4258\|EPSG:5703" | sort' >> ${OUT} +$EXE --list-crs --area Spain | grep "EPSG:9505\|EPSG:9398\|EPSG:4258\|EPSG:5703" | sort >> ${OUT} +echo "" >>${OUT} + +echo 'Testing --list-crs geodetic | grep "EPSG:4326\|EPSG:4979\|EPSG:4978" | sort' >> ${OUT} +$EXE --list-crs geodetic | grep "EPSG:4326\|EPSG:4979\|EPSG:4978" | sort >> ${OUT} +echo "" >>${OUT} + +echo 'Testing --list-crs geographic | grep "EPSG:4326\|EPSG:4979\|EPSG:4978" | sort' >> ${OUT} +$EXE --list-crs geographic | grep "EPSG:4326\|EPSG:4979\|EPSG:4978" | sort >> ${OUT} +echo "" >>${OUT} + +echo 'Testing --list-crs geocentric,geographic_3d | grep "EPSG:4326\|EPSG:4979\|EPSG:4978" | sort' >> ${OUT} +$EXE --list-crs geocentric,geographic_3d | grep "EPSG:4326\|EPSG:4979\|EPSG:4978" | sort >> ${OUT} +echo "" >>${OUT} + +echo 'Testing --list-crs geographic_2d,allow_deprecated --bbox -100,40,-90,41 --spatial-test intersects | grep deprecated | grep "NAD83(FBN)\|GCS_IGS08" | sort' >> ${OUT} +$EXE --list-crs geographic_2d,allow_deprecated --bbox -100,40,-90,41 --spatial-test intersects | grep deprecated | grep "NAD83(FBN)\|GCS_IGS08" | sort >> ${OUT} +echo "" >>${OUT} + +echo 'Testing --list-crs projected --bbox -100,40,-90,41 --spatial-test intersects | grep "(2011).*Missouri East\|York" | sort' >> ${OUT} +$EXE --list-crs projected --bbox -100,40,-90,41 --spatial-test intersects | grep "(2011).*Missouri East\|York" | 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 |
