diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-06-06 21:24:11 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2018-06-06 21:24:11 +0200 |
| commit | 8574765a7fb514b3d8ad7139df4f45a81f95e6c1 (patch) | |
| tree | c34a871b917f852d9098c51de3aaa48c1fefeca5 /test/gie | |
| parent | 983d18a01fd0d6a3ecfc1974b919925ae73810f8 (diff) | |
| download | PROJ-8574765a7fb514b3d8ad7139df4f45a81f95e6c1.tar.gz PROJ-8574765a7fb514b3d8ad7139df4f45a81f95e6c1.zip | |
Correct bad use of proj_dmstor in gie.
The previous commits were added way to prematurely. The code was not
properly tested and it turned out to do more bad than good. This commit
hopefully fixes that. And this time it is backed up by tests!
DMS style coordinates should now be fully functional in gie. Finger
crossed.
Diffstat (limited to 'test/gie')
| -rw-r--r-- | test/gie/more_builtins.gie | 39 |
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 +------------------------------------------------------------------------------- ------------------------------------------------------------------------------- |
