linz / snap

Survey Network Adjustment Package.
Other
8 stars 4 forks source link

Concord appears to hang with bad coordinates #43

Closed ccrook closed 1 year ago

ccrook commented 6 years ago
concord -i nztm/nzvd2016:enh -o wgs84_g1762/egm96:enh:d -y now nz_test.txt output.txt

nz_test.txt

ccrook commented 1 year ago

In this example the input long/lat values are being interpreted as NZTM values. This leads to absurd lat/lon vlaues for the grid calculation (eg -1.3E+21). The grid code then attempts to round this to the grid range by adding 360 degrees. This should fail immediately as an unrealistic longitude, rather than looping indefinitely (as adding 360 degrees is lost in the rounding error).

Ideally the input coordinates should trigger an error in any case as not being valid.