aboutsummaryrefslogtreecommitdiff
path: root/test/cli/testdatumfile
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-11-30 16:39:18 +0100
committerGitHub <noreply@github.com>2020-11-30 16:39:18 +0100
commitdc7a0c3c6f6c91cb97a991bdb8e51b805230f901 (patch)
tree515ff8780b19821e66095a8c1173aabb0e8aefdd /test/cli/testdatumfile
parente9f7439946d9a6de799b0ba02af549875aae9979 (diff)
parentebe3425bf66287e004958eb53976d3837f88b9e1 (diff)
downloadPROJ-dc7a0c3c6f6c91cb97a991bdb8e51b805230f901.tar.gz
PROJ-dc7a0c3c6f6c91cb97a991bdb8e51b805230f901.zip
Merge pull request #2466 from rouault/fix_2423
cs2cs: add --area and --bbox options to restrict candidate coordinate operations (fixes #2423)
Diffstat (limited to 'test/cli/testdatumfile')
-rwxr-xr-xtest/cli/testdatumfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/cli/testdatumfile b/test/cli/testdatumfile
index 16e4bbc3..5a013f12 100755
--- a/test/cli/testdatumfile
+++ b/test/cli/testdatumfile
@@ -60,6 +60,27 @@ $EXE +proj=latlong +ellps=clrk66 '+nadgrids="./dir with "" space/myconus"' \
EOF
echo "##############################################################" >> ${OUT}
+echo "Test --area Canada NAD27 NAD83 (using ntv1_can)" >> ${OUT}
+$EXE --area Canada NAD27 NAD83 >>${OUT} <<EOF
+44 -111
+39 -111
+EOF
+
+echo "##############################################################" >> ${OUT}
+echo "Test --bbox -141.01,40.04,-47.74,86.46 NAD27 NAD83 (using ntv1_can)" >> ${OUT}
+$EXE --bbox -141.01,40.04,-47.74,86.46 NAD27 NAD83 >>${OUT} <<EOF
+44 -111
+39 -111
+EOF
+
+echo "##############################################################" >> ${OUT}
+echo "Test --area \"USA - CONUS - onshore\" NAD27 NAD83 (using conus)" >> ${OUT}
+$EXE --area "USA - CONUS - onshore" NAD27 NAD83 >>${OUT} <<EOF
+44 -111
+39 -111
+EOF
+
+echo "##############################################################" >> ${OUT}
echo Test MD used where available >> ${OUT}
#
$EXE +proj=latlong +ellps=clrk66 +nadgrids=MD,conus \