aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-10-25 22:19:42 +0100
committerGitHub <noreply@github.com>2020-10-25 22:19:42 +0100
commita1513668db1acbd2c84f985ff1e772986cde0321 (patch)
tree40f0d59d990727740a2dd7cab6d0ec7c17760c76 /test
parent6476108774c8c947f0197ec1acff781f17e6edde (diff)
parent4559a3f702f3f2e2d796d46458a61f38595d6e08 (diff)
downloadPROJ-a1513668db1acbd2c84f985ff1e772986cde0321.tar.gz
PROJ-a1513668db1acbd2c84f985ff1e772986cde0321.zip
Merge pull request #2395 from rouault/colombia_urban
Add +proj=col_urban projection, implementing a EPSG projection method used by a number of projected CRS in Colombia (fixes #589)
Diffstat (limited to 'test')
-rwxr-xr-xtest/cli/testvarious6
-rw-r--r--test/cli/tv_out.dist3
-rw-r--r--test/gie/builtins.gie14
3 files changed, 23 insertions, 0 deletions
diff --git a/test/cli/testvarious b/test/cli/testvarious
index 6a77729e..292ee316 100755
--- a/test/cli/testvarious
+++ b/test/cli/testvarious
@@ -1003,6 +1003,12 @@ echo "2 49" > tmp.txt
$EXE EPSG:4326 EPSG:4326 tmp.txt -E >> ${OUT}
rm tmp.txt
+echo "##############################################################" >> ${OUT}
+echo "Test Colombia Urban" >> ${OUT}
+$EXE -f %.3f EPSG:4686 EPSG:6247 -E >> ${OUT} <<EOF
+4.8 -74.25
+EOF
+
# Done!
# do 'diff' with distribution results
echo "diff ${OUT} with ${OUT}.dist"
diff --git a/test/cli/tv_out.dist b/test/cli/tv_out.dist
index 22a26380..70b2ab6e 100644
--- a/test/cli/tv_out.dist
+++ b/test/cli/tv_out.dist
@@ -482,3 +482,6 @@ Check +proj=longlat +over +datum=WGS84 +to proj=merc +a=6378137 +b=6378137 +lat_
##############################################################
Test EPSG:xxxx EPSG:yyyy filename
2 49 2dN 49dE 0.000
+##############################################################
+Test Colombia Urban
+4.8 -74.25 122543.174 80859.033 0.000
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie
index cbba686c..cfce5041 100644
--- a/test/gie/builtins.gie
+++ b/test/gie/builtins.gie
@@ -6587,4 +6587,18 @@ expect -0.001790493 0.000895247
accept -200 -100
expect -0.001790493 -0.000895247
+
+===============================================================================
+# Colombia Urbian
+# Test point from IOGP Publication 373-7-2 - Geomatics Guidance Note number 7, part 2 - March 2020
+===============================================================================
+
+-------------------------------------------------------------------------------
+operation +proj=col_urban +lat_0=4.68048611111111 +lon_0=-74.1465916666667 +x_0=92334.879 +y_0=109320.965 +h_0=2550 +ellps=GRS80
+-------------------------------------------------------------------------------
+tolerance 1 mm
+accept -74.25 4.8
+expect 80859.033 122543.174
+roundtrip 1
+
</gie-strict>