aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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
+-------------------------------------------------------------------------------
-------------------------------------------------------------------------------