diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2017-12-06 08:14:25 +0100 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2017-12-06 08:14:25 +0100 |
| commit | 43ba4112a8901278387d0c3815937f4cbb0c5b0c (patch) | |
| tree | 6ed1c9820927b990170ccb53dcc9ed684a9393e4 /test | |
| parent | 597a208400377ca6285fbd204c44817e21f31907 (diff) | |
| parent | 86b96ccb8c926f831451c3e6d364319a0d833522 (diff) | |
| download | PROJ-43ba4112a8901278387d0c3815937f4cbb0c5b0c.tar.gz PROJ-43ba4112a8901278387d0c3815937f4cbb0c5b0c.zip | |
Merge remote-tracking branch 'osgeo/master' into docs-release-4.10.0
Diffstat (limited to 'test')
| -rw-r--r-- | test/gie/GDA.gie | 70 | ||||
| -rw-r--r-- | test/gie/more_builtins.gie | 10 |
2 files changed, 75 insertions, 5 deletions
diff --git a/test/gie/GDA.gie b/test/gie/GDA.gie new file mode 100644 index 00000000..3fe0f3e3 --- /dev/null +++ b/test/gie/GDA.gie @@ -0,0 +1,70 @@ +----------------------------------------------------------------------------------- +Australian datum transformations +----------------------------------------------------------------------------------- +Based on material from: + +Intergovernmental Committee on Surveying and Mapping (ICSM) +Permanent Committee on Geodesy (PCG): + +Geocentric Datum of Australia 2020 Technical Manual +Version 1.0, 25 July 2017 + +Which is distributed under Creative Commons CC-BY 4.0 + +These tests will probably be useful as a template for an AU setup file, defining +transformations for Australian systems, but I'm reluctant to provide such a file +directly - I believe it should come from official AU sources. + +Thomas Knudsen, thokn@sdfe.dk, 2017-11-27 +----------------------------------------------------------------------------------- + +<gie> +----------------------------------------------------------------------------------- +GDA94 to GDA2020 +----------------------------------------------------------------------------------- +Just the Helmert transformation, to verify that we are within 100 um +----------------------------------------------------------------------------------- +operation proj=helmert x=0.06155 y=-0.01087 z=-0.04019 s=-0.009994 \ + rx=-0.0394924 ry=-0.0327221 rz=-0.0328979 +----------------------------------------------------------------------------------- +tolerance 75 um +accept -4052051.7643 4212836.2017 -2545106.0245 +expect -4052052.7379 4212835.9897 -2545104.5898 + + +----------------------------------------------------------------------------------- +GDA94 to GDA2020 +----------------------------------------------------------------------------------- +All the way from geographic-to-geographic +----------------------------------------------------------------------------------- +operation proj=pipeline ellps=GRS80 \ + step proj=cart \ + step proj=helmert x=0.06155 y=-0.01087 z=-0.04019 s=-0.009994 \ + rx=-0.0394924 ry=-0.0327221 rz=-0.0328979 \ + step proj=cart inv +----------------------------------------------------------------------------------- +accept 133.88551329 -23.67012389 603.3466 0 # Alice Springs GDA94 +expect 133.8855216 -23.67011014 603.2489 0 # Alice Springs GDA2020 + + +----------------------------------------------------------------------------------- +ITRF2014@2018 to GDA2020 +----------------------------------------------------------------------------------- +Just the Helmert transformation, to verify that we are within 100 um +----------------------------------------------------------------------------------- +operation proj = helmert; \ + x = 0; rx = 0; dx = 0; drx = 0.00150379; \ + y = 0; ry = 0; dy = 0; dry = 0.00118346; \ + z = 0; rz = 0; dz = 0; drz = 0.00120716; \ + \ + ds = 0; epoch=2020.0; +----------------------------------------------------------------------------------- +tolerance 50 um + + # Alice Springs ITRF2014@2018.0 +accept -4052052.6588 4212835.9938 -2545104.6946 2018.0 + + # Alice Springs GDA2020 +expect -4052052.7373 4212835.9835 -2545104.5867 + +</gie> diff --git a/test/gie/more_builtins.gie b/test/gie/more_builtins.gie index 8ac8a667..ea37a763 100644 --- a/test/gie/more_builtins.gie +++ b/test/gie/more_builtins.gie @@ -140,11 +140,11 @@ roundtrip 100 1 nm ------------------------------------------------------------------------------- Fail on purpose: +grids parameter is mandatory operation proj=vgridshift -expect failure +expect failure errno no_args Fail on purpose: open non-existing grid operation proj=vgridshift grids=nonexistinggrid.gtx -expect failure +expect failure errno failed_to_load_grid @@ -166,11 +166,11 @@ expect 173 -45 0 0 ------------------------------------------------------------------------------- Fail on purpose: +grids parameter is mandatory: operation proj=hgridshift -expect failure +expect failure errno no_args Fail on purpose: open non-existing grid: operation proj=hgridshift grids=@nonexistinggrid.gsb,anothernonexistinggrid.gsb -expect failure +expect failure errno failed_to_load_grid ------------------------------------------------------------------------------- @@ -277,7 +277,7 @@ expect 12 89.999999999989996 0 0 some less used options ------------------------------------------------------------------------------- operation proj=utm ellps=GRS80 zone=32 to_meter=0 -expect failure +expect failure errno unit_factor_less_than_0 operation proj=utm ellps=GRS80 zone=32 to_meter=10 accept 12 55 |
