From 7bb5d00b2172053682b093c15021a1c53f1aafb2 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 17 Mar 2020 19:32:15 +0100 Subject: cs2cs: don't require +to for '{source_crs} {target_crs} filename...' syntax (fixes #2012) --- test/cli/testvarious | 5 +++++ test/cli/tv_out.dist | 3 +++ 2 files changed, 8 insertions(+) (limited to 'test/cli') diff --git a/test/cli/testvarious b/test/cli/testvarious index 6c00ba13..6d773c4c 100755 --- a/test/cli/testvarious +++ b/test/cli/testvarious @@ -997,6 +997,11 @@ $EXE -f %.7f +proj=longlat +over +datum=WGS84 +to proj=merc +a=6378137 +b=637813 -181 49 EOF +echo "##############################################################" >> ${OUT} +echo "Test EPSG:xxxx EPSG:yyyy filename" >> ${OUT} +echo "2 49" > tmp.txt +$EXE EPSG:4326 EPSG:4326 tmp.txt -E >> ${OUT} +rm tmp.txt # Done! # do 'diff' with distribution results diff --git a/test/cli/tv_out.dist b/test/cli/tv_out.dist index 8720a124..22a26380 100644 --- a/test/cli/tv_out.dist +++ b/test/cli/tv_out.dist @@ -479,3 +479,6 @@ Check +init=epsg:4326 +over +to +init=epsg:3857 +over ############################################################## Check +proj=longlat +over +datum=WGS84 +to proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +over -181 49 -20148827.8335825 6274861.3940066 0.0000000 +############################################################## +Test EPSG:xxxx EPSG:yyyy filename +2 49 2dN 49dE 0.000 -- cgit v1.2.3