<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Thanks Martin<o:p></o:p></p><p class=MsoNormal>14fac78 solved both the proj download related crash and the ~100 m positional error for lat-long and NZTM fixed points.  I have attached a cut down version of the therion.log file that was produced.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am a little confused, as Therion automatically downloaded the grid and yet my therion.ini does not have any of the proj-auto or proj-missing-grid settings mentioned in the 14fac78 Therion Book pg 86-87, which raises for me many questions.  I assume the functionality of those ini statements is now superseded by the proj.ini that is now present in the install folders (as you described as "use the best transformation and download the grids if needed") and that the Therion Book is yet to be updated?<o:p></o:p></p><p class=MsoNormal>Or maybe I am not looking I the correct place for the ini files that Therion is actually using?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Can Therion be run without having internet access (or without first having had internet access for a particular survey dataset at some previous time)?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In the attached file, do the transformations marked [no] and [yes] relate to whether they are used or not?<o:p></o:p></p><p class=MsoNormal>And presumably the accuracies listed are the estimated accuracies?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Can I use proj-missing-grid to improve the accuracy of my example further or is 4m accuracy the best I am likely to get for this particular dataset?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Regards<o:p></o:p></p><p class=MsoNormal>Bruce<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> Therion <therion-bounces@speleo.sk> <b>On Behalf Of </b>Bruce Mutton<br><b>Sent:</b> Monday, 25 April 2022 21:12<br><b>To:</b> 'List for Therion users' <therion@speleo.sk><br><b>Subject:</b> [Therion] Problem with new default settings and recent proj changes<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoPlainText>Martin<o:p></o:p></p><p class=MsoPlainText>Something bad happened between 6.0.0 and 6.0.5 that we only just noticed today (because for day to day work we only compile small sections of the cave).<o:p></o:p></p><p class=MsoPlainText>Therion 6.05 has moved some of our fixed stations about 100 m north (those specified with cs lat-long and cs EPSG:2193 NZTM) and others (specified with cs EPSG:27200 NZMG) stayed in their correct locations, severely distorting our cave.  No errors reported, just outputs with large loop errors and distorted cave.<o:p></o:p></p><p class=MsoPlainText>Interestingly, it is the old archaic format NZMG that performs correctly and the modern and lat-long are relocated.<o:p></o:p></p><p class=MsoPlainText>The image below is located with NZMG, as is the cave entrance in the centre.  The cave entrances left and right are located with either lat-long or NZTM.<o:p></o:p></p><p class=MsoPlainText><img width=897 height=243 style='width:9.3472in;height:2.5347in' id="Picture_x0020_1" src="cid:image003.png@01D859B6.CD1958E0"><o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Before reporting this I thought I'd better at least try 6.0.6+3bc6556<o:p></o:p></p><p class=MsoPlainText>I get a crash right away as the therion.log transcript below indicates.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText style='margin-left:36.0pt'>therion 6.0.6+3bc6556 (2022-04-21)<o:p></o:p></p><p class=MsoPlainText style='margin-left:36.0pt'>  - using Proj 9.0.0, compiled against 9.0.0<o:p></o:p></p><p class=MsoPlainText style='margin-left:36.0pt'>initialization file: C:\Program Files (x86)\Therion/therion.ini<o:p></o:p></p><p class=MsoPlainText style='margin-left:36.0pt'>reading ... done<o:p></o:p></p><p class=MsoPlainText style='margin-left:36.0pt'>configuration file: thconfig-GLMESM_System5000Map.thc<o:p></o:p></p><p class=MsoPlainText style='margin-left:36.0pt'>reading ... done<o:p></o:p></p><p class=MsoPlainText style='margin-left:36.0pt'>reading source files ... downloading the grid <a href="https://cdn.proj.org/nz_linz_nzgd2kgrid0005.tif">https://cdn.proj.org/nz_linz_nzgd2kgrid0005.tif</a>... <o:p></o:p></p><p class=MsoPlainText style='margin-left:36.0pt'>C:\Program Files (x86)\Therion\therion.exe: error -- couldn't download the grid<o:p></o:p></p><p class=MsoPlainText style='margin-left:36.0pt'>writing xtherion file ... done<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Should I be using one of the new cs-trans or proj-* commands or is there something else?<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Regards<o:p></o:p></p><p class=MsoPlainText>Bruce<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span lang=EN-US>-----Original Message-----<br>From: Therion <<a href="mailto:therion-bounces@speleo.sk">therion-bounces@speleo.sk</a>> On Behalf Of Martin Budaj<br>Sent: Friday, 22 April 2022 07:32<br>To: List for Therion users <<a href="mailto:therion@speleo.sk">therion@speleo.sk</a>><br>Subject: [Therion] new default settings</span><o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Hi all,<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Therion has been supporting the advanced features of the Proj library for some time now. (Proj's purpose is to do transformations between coordinate systems.) This functionality was disabled by default and you could enable it using 'proj-auto' and 'proj-missing-grid' options in the initialization file.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>'proj-auto' lets Proj choose the best transformation and you can set 'proj-missing-grid' to download a grid file (see<o:p></o:p></p><p class=MsoPlainText> <a href="https://proj.org/usage/transformation.html#grid-based-datum-adjustments">https://proj.org/usage/transformation.html#grid-based-datum-adjustments</a>)<o:p></o:p></p><p class=MsoPlainText>if the transformation needs it; see the therion book for details. The log file lists all the transformations chosen and used at the end.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>The latest commit (3bc6556) enables this "use the best transformation and download the grids if needed" functionality. We know that automatic downloads are a sensitive issue, but in this case we can trust the Proj library not to do any harm<o:p></o:p></p><p class=MsoPlainText>( <a href="https://proj.org/usage/network.html">https://proj.org/usage/network.html</a> ) and the user experience is much better.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Could you check if this version works well with your data sets? The windows installer is available here:<o:p></o:p></p><p class=MsoPlainText> <a href="https://github.com/therion/therion/actions/runs/2203811478">https://github.com/therion/therion/actions/runs/2203811478</a>  (use the<o:p></o:p></p><p class=MsoPlainText>msys2 version which uses up-to-date Proj library; you need to be logged in to github to download it).<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>M.<o:p></o:p></p><p class=MsoPlainText>_______________________________________________<o:p></o:p></p><p class=MsoPlainText>Therion mailing list<o:p></o:p></p><p class=MsoPlainText><a href="mailto:Therion@speleo.sk"><span style='color:windowtext;text-decoration:none'>Therion@speleo.sk</span></a><o:p></o:p></p><p class=MsoPlainText><a href="https://mailman.speleo.sk/listinfo/therion"><span style='color:windowtext;text-decoration:none'>https://mailman.speleo.sk/listinfo/therion</span></a><o:p></o:p></p></div></body></html>