diff --git a/nad/val_def.demo b/examples/val_def.demo similarity index 93% rename from nad/val_def.demo rename to examples/val_def.demo index 87777b9dc0..315219fd89 100644 --- a/nad/val_def.demo +++ b/examples/val_def.demo @@ -18,10 +18,12 @@ e.g. using the cct 4D transformation program: The system validation parts are used when validating the systems defined in the file. This is done using the gie test program: +Place val_def.demo in your PROJ_LIB directory +(or set PROJ_LIB=) and say: gie val_def.demo -Which will respond with a report detailing how many tests succeeded, +This will result in a report detailing how many tests succeeded, resp. failed. The syntax of proj init files is orthogonal to the syntax of gie diff --git a/src/gie.c b/src/gie.c index 2ae2ddee20..8a1d356e48 100644 --- a/src/gie.c +++ b/src/gie.c @@ -1888,7 +1888,6 @@ static int pj_unitconvert_selftest (void) { ret = test_time(args3, 1e-6, in3, in3); if (ret) return ret + 30; ret = test_time(args4, 1e-6, in4, exp4); if (ret) return ret + 40; ret = test_xyz (args5, 1e-10, in5, exp5); if (ret) return ret + 50; - ret = test_xyz (args6, 1e-10, in6, in6); if (ret) return ret + 50; ret = test_xyz (args6, 1e-10, in6, in6); if (ret) return ret + 60; ret = test_time(args7, 1e-6, in7, in7); if (ret) return ret + 70; diff --git a/src/pj_init.c b/src/pj_init.c index 7e8855753a..1b0f479f61 100644 --- a/src/pj_init.c +++ b/src/pj_init.c @@ -344,6 +344,7 @@ where 'ellps=intl' precedes 'ellps=GRS80', and hence takes precedence, turning the expansion into an UTM projection on the Hayford ellipsoid. Note that 'init=foo:bar' stays in the list. It is ignored after expansion. + ******************************************************************************/ paralist *last; paralist *expn; diff --git a/test/gie/pip.gie b/test/gie/pip.gie deleted file mode 100644 index 0cb5461489..0000000000 --- a/test/gie/pip.gie +++ /dev/null @@ -1,41 +0,0 @@ -These two tests have occasionally been causing segfaults from gie, but -only at low PROJ_DEBUG levels. - - -------------------------------------------------------------------------------- -Finally test a pipeline with more than one init step -------------------------------------------------------------------------------- -operation proj=pipeline step - init=epsg:25832 inv step - init=epsg:25833 step - init=epsg:25833 inv step - init=epsg:25832 -------------------------------------------------------------------------------- -accept 691875.63214 6098907.82501 0 0 -expect 691875.63214 6098907.82501 0 0 -direction inverse -accept 12 55 0 0 -expect 12 55 0 0 -------------------------------------------------------------------------------- - - - -------------------------------------------------------------------------------- -This example is a coordinate from the geodetic observatory in Onsala, -Sweden transformed from ITRF2000 @ 2017.0 to ITRF93 @ 2017.0. - -The test coordinate was transformed using GNSStrans, using transformation -parameters published by ITRF: ftp://itrf.ensg.ign.fr/pub/itrf/ITRF.TP -------------------------------------------------------------------------------- -operation proj=helmert ellps=GRS80 transpose - x = 0.0127 dx = -0.0029 rx = -0.00039 drx = -0.00011 - y = 0.0065 dy = -0.0002 ry = 0.00080 dry = -0.00019 - z = -0.0209 dz = -0.0006 rz = -0.00114 drz = 0.00007 - - s = 0.00195 ds = 0.00001 t_epoch = 1988.0 -------------------------------------------------------------------------------- -tolerance 0.03 mm -accept 3370658.37800 711877.31400 5349787.08600 2017.0 # ITRF2000@2017.0 -expect 3370658.18890 711877.42370 5349787.12430 2017.0 # ITRF93@2017.0 -------------------------------------------------------------------------------- -