aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-06-06 22:25:42 +0200
committerGitHub <noreply@github.com>2018-06-06 22:25:42 +0200
commit9c5741d25229308971b83798fae55e3045910521 (patch)
treec34a871b917f852d9098c51de3aaa48c1fefeca5 /test
parent983d18a01fd0d6a3ecfc1974b919925ae73810f8 (diff)
parent8574765a7fb514b3d8ad7139df4f45a81f95e6c1 (diff)
downloadPROJ-9c5741d25229308971b83798fae55e3045910521.tar.gz
PROJ-9c5741d25229308971b83798fae55e3045910521.zip
Merge pull request #1032 from kbevers/gie-dms-again
Correct bad use of proj_dmstor in gie.
Diffstat (limited to 'test')
-rw-r--r--test/gie/more_builtins.gie39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/gie/more_builtins.gie b/test/gie/more_builtins.gie
index d7074c5b..04cf724e 100644
--- a/test/gie/more_builtins.gie
+++ b/test/gie/more_builtins.gie
@@ -364,6 +364,45 @@ accept 12 55
expect 69187.5632 609890.7825
-------------------------------------------------------------------------------
+-------------------------------------------------------------------------------
+Test that gie can read DMS style coordinates as well as coordinates where _
+is used as a thousands separator.
+-------------------------------------------------------------------------------
+operation +step +proj=latlong
+-------------------------------------------------------------------------------
+tolerance 1 m
+
+accept -64d43'75.34 17d32'45.6
+expect -64.737589 17.546000
+
+accept 164d43'75.34 17d32'45.6
+expect 164.737589 17.546000
+
+accept 164d43'75.34 17d32'45.6
+expect 164d43'75.34 17d32'45.6
+
+accept 164d43'75.34W 17d32'45.6S
+expect -164.737589 -17.546000
+
+accept 90d00'00.00 0d00'00.00
+expect 90.0 0.0
+
+accept 0d00'00.00 0d00'00.00
+expect 0.0 0.0
+
+
+
+operation +proj=pipeline
+ +step +proj=latlong +datum=NAD27 +inv
+ +step +units=us-ft +init=nad27:3901
+tolerance 1 mm
+
+accept -80d32'30.000 34d32'30.000 0.0
+expect 2_138_028.224 561_330.721 0.0
+
+accept -81d00'00.000 34d32'30.000 0.0
+expect 2_000_000.000 561_019.077 0.0
+-------------------------------------------------------------------------------
-------------------------------------------------------------------------------