<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:small;"><div><div>Dear gentlemen,</div><div><br></div><div>I read with great interest your discussions. Most of your proposals are very constructive while other even are innovative, they lack of strategy and &nbsp;this is the point I want to focus on, as a survey and geodetic engineer with more than 40 years experience.&nbsp;</div><div>First let's make a distinguish between some different issues :</div><div>- Geoid is our target object (the earth MSL) with an arbitrary shape which unfortunatelly is not either static or completely defined.</div><div>- Geodetic Transformations like 7 params Helmert or 9 params Molodensky Badekas, that are applied on different ellipsoids to translate and rotate the ellipsoid in use in order to best fit on a certain area the Geoid.</div><div>- Spheroid is a mathematic sphere fiting the ellipsoid on an area with center a certain point.</div><div>- Projection is the spreads of the spheroid surface we mathematically do with origin &nbsp;a certain line or a point</div><div>- Transformations like similarity, affine, 2D Helmert etc are planar and are applied only on projections ie planar datums or image rectifications.&nbsp;</div><div>- The procedure to make a transformation is:</div><div>Projection A -&gt; Datum A -&gt; Datum B (applying geodetic transformation with certain params) -&gt; Projection B</div><div>This procedure is not error free. Usually bulk errors even 10 m are experienced and here the problem starts!</div><div>1. To my opinion NGA standards must be respected and never allow for the shake of our program's completeness not professionals to change these parameters or evaluate their owns and establish them for the shake of better local accuracy achievent.</div><div>I experienced such a case in Riyadh where there are two AinAlAbd systems because a GIS "expert" decided to change for Riyadh the Helmert 7 parameter values NGA gives with an accuracy of 10m for whole Saudi Arabia with other calculated with LSM inverse Helmert to achieve 2 m accuracy. Result? Chaos!! So are you going to make a product devoted to these standards or something open?</div><div>2. I hear about calculations accuracy improvement. What do you really mean and what would be the interest of this? I see you use 10bytes double precision instead ieee 8. Do you plan to go further with special math libraries that use "unlimited" significant decimal digits against the calculation speed etc.</div><div>3. Do you plan to re-design the UI?</div><div>4. Do you plan to make any tools that will permit inexperienced users to deal with the core?</div><div>I really look forward to learn more about these isues</div><div><br></div><div class="ydp45334e12signature"><div class="ydp45334e12signature" id="ydp45334e12yui_3_16_0_ym19_1_1467622809522_775026" style="font-family:verdana, helvetica, sans-serif;"><div class="ydp45334e12signature" id="ydp45334e12yui_3_16_0_ym19_1_1483688327000_4292" style="font-size:13px;"><div class="ydp45334e12signature" id="ydp45334e12yui_3_16_0_ym19_1_1467622809522_775026" style="font-family:verdana, helvetica, sans-serif;"><span id="ydp45334e12yui_3_16_0_ym19_1_1467622809522_775049" style="font-size:small;">Best Regards</span><br><br><span id="ydp45334e12yui_3_16_0_ym19_1_1467622809522_775197" style="font-size:small;font-weight:bold;"><font color="#4c76a2" id="ydp45334e12yui_3_16_0_ym19_1_1483688327000_4760">Stefanos Beligiannis</font></span></div><div class="ydp45334e12signature" id="ydp45334e12yui_3_16_0_ym19_1_1467622809522_775026" style="font-family:verdana, helvetica, sans-serif;"><font size="2" id="ydp45334e12yui_3_16_0_ym19_1_1483688327000_4522"><span id="ydp45334e12yui_3_16_0_ym19_1_1483688327000_4968">Rural &amp; Survey Engineer MSc</span><br></font></div></div></div></div></div><div><br></div><div><br></div><hr><div id="ydpf9e2c943yahoo_quoted_2748001397" class="ydpf9e2c943yahoo_quoted"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><div>On Thursday, August 10, 2017, 3:01:11 PM GMT+3, Thomas Knudsen &lt;knudsen.thomas@gmail.com&gt; wrote:</div><div><br></div><div><br></div><div><div id="ydpf9e2c943yiv8266579988"><div><div dir="ltr"><div>Duncan (and daan),</div><div><br clear="none"></div><div>Yes, map projections are mathematical functions, while reference frame shifts are geophysical/geodetical transformations.</div><div><br clear="none"></div><div>The latter are, however, also *in practice* represented by sequential application of parameterized mathematical functions, drawn from a rather limited gamut - basically consisting of Helmert, Horner, Molodensky, Grid interpolation and ellipsoidal/cartesian transformation.</div><div><br clear="none"></div><div>All of these fundamental operations are architecturally similar to the map projection functions of the original libproj, and are implemented in a similar way.</div><div><br clear="none"></div><div>Hence, what Kristian Evers and I have done over the last 18 months is technically to add 5 (or so) new projections to the original libproj.</div><div><br clear="none"></div><div>To string the stuff together, we designed the pipeline metaphor, which is also materialized as just another projection.</div><div><br clear="none"></div><div>So we have added what amounts to a few more projections to the library. These can be used or ignored, in the same way you may ignore the Transverse Mercator implementation if you are only interested in the Lambert Conformal Conic (You can probably even compile a version of the library leaving most of the “pseudoprojections” out).</div><div><br clear="none"></div><div>All parameters for implementing actual reference frame transformations *are stored in parameter files, not in the library per se*.</div><div><br clear="none"></div><div>If you are *not interested* in reference frame shifts, the code supporting reference frame shifts will *not affect you*. And the parameter files will only affect you through the (limited) disk space required. But you are not forced to install them anyway.</div><div><br clear="none"></div><div>So if you are *not interested* in reference frame shifts, please *ignore the matter* and stop arguing against stuff that will *not affect you*. This stuff is certainly useful for a range of other people.</div><div><br clear="none"></div><div>Should we want to follow daan’s recipe of splitting the reference frame handling entirely from the projection library, we would have to duplicate most of the well tested libproj infrastructural architecture into another library, which would, in most cases, be used in applications also depending on libproj.</div><div><br clear="none"></div><div>Simply leveraging the existing infrastructure and adding a handful of pseudoprojections was definitely the way to go. Especially since the libproj architecture makes it possible to do so in a neat and non-intrusive way.</div><div><br clear="none"></div><div>Regarding the new API:</div><div><br clear="none"></div><div>The new API emerged as a by-product of attempts to make the libproj internals more maintainable, by improving namespacing and introducing new internal data types in order to reduce type-punning. This makes it more clear exactly what kind of coordinate is expected at each spot in the code.</div><div><br clear="none"></div><div>The new API exposes these data types, simplifies a wide field of operations, and provides a unified interface to 2D, 3D and 4D transformations.</div><div><br clear="none"></div><div>The new API does not replace the old API, but obviously the designers hope that it will become the preferred one for new applications. The old API may some day gain a “deprecated” status, but will only rot entirely away if no one is interested in maintaining it. So if anyone needs it badly enough to sponsor its maintenance, it will live on forever.</div><div><br clear="none"></div><div>In a limited number of cases, software pre-dating the original API, described in proj-api.h, may experience breakage, since the original projects.h file does not describe an actual interface (API), but rather exposes every single function and data structure in the library.</div><div><br clear="none"></div><div>So there is only one way to ensure that each-and-every program, using projects.h to do calls to libproj internals, would keep working with new versions of libproj: That would be to freeze both development and maintenance of the PROJ system. And anyone wishing for that may get theirs by just sticking with proj 4.3.0.</div><div><br clear="none"></div><div>I personally believe, though, that we should make efforts not to hamper more well disciplined programs using projects.h just to do calls to the “obvious API” of projects.h (pj_init, pj_fwd, pj_inv, pj_free, and probably a few more).</div><div><br clear="none"></div><div>The proj and cs2cs filters will live on as long as anyone wants to maintain them. But they definitely need some tlc, so test cases involving some of your more esoteric use cases of proj and cs2cs would be very welcome, and would greatly reduce the risk of regressions during maintenance.</div><div><br clear="none"></div><div>/thomas</div><div class="ydpf9e2c943yiv8266579988gmail_extra"><br clear="none"><div class="ydpf9e2c943yiv8266579988yqt2406945106" id="ydpf9e2c943yiv8266579988yqtfd04742"><div class="ydpf9e2c943yiv8266579988gmail_quote">2017-08-10 6:56 GMT+02:00 Duncan Agnew <span dir="ltr">&lt;<a shape="rect" href="mailto:dagnew@ucsd.edu" rel="nofollow" target="_blank">dagnew@ucsd.edu</a>&gt;</span>:<br clear="none"><blockquote class="ydpf9e2c943yiv8266579988gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">All:<br clear="none"><br clear="none">I pretty much agree with Dan. For clarity (lacking in my previous entry),<br clear="none">there are two things, easily conflated, to talk about:<br clear="none"><br clear="none">&nbsp;&nbsp;&nbsp; A. proj the program that people use (often on the command line)<br clear="none">to go between lat-long and projection coordinates. Most of these users<br clear="none">don't care about which lat/long they are using: certainly not important<br clear="none">if making a map, and probably not if using it to set up a grid system<br clear="none">for your own use (I've used it for both).<br clear="none"><br clear="none">&nbsp;&nbsp;&nbsp; B. PROJ the package, which includes not just projections<br clear="none">but all the additional machinery to handle different datums--and<br clear="none">in the future heights and temporal changes.<br clear="none"><br clear="none">&nbsp;&nbsp;&nbsp; I completely agree that PROJ needs to keep evolving; but at the<br clear="none">same time I (and probably many other users) would like to have proj<br clear="none">stay the same. This ought to be relatively easy since it is almost all<br clear="none">mathematics, the only parameters being the size and shape of the<br clear="none">ellipsoid--and I don't imagine there will be new values of this being<br clear="none">produced. But it depends on allowing the functionality of proj (not<br clear="none">PROJ) to not require the user who just wants a projection to have to<br clear="none">master the additional features needed to do datum transformations.<br clear="none"><br clear="none">&nbsp;&nbsp;&nbsp; Of course grids are just projections, so it was easy for Gerald<br clear="none">to add things like SPCS, blurring the line a bit; but, with Daan (and<br clear="none">Gerald) I'd argue that it would be helpful to many users to have things<br clear="none">somewhat distinct.<br clear="none"><br clear="none">&nbsp;&nbsp;&nbsp; And, I'd like to raise a question (I'm genuinely curious) about how<br clear="none">time-dependent motion will be added. Having been professionally engaged in<br clear="none">measuring and modeling crustal motion for the last 30+ years, I can say that it<br clear="none">is going to be a lot more complicated to keep track of. proj (as above) needs<br clear="none">only the -le parameters (a fixed set); once you add the rigid-body motions for<br clear="none">datum transformations there are a lot more parameters, many conventional (and<br clear="none">so unchanging), which EPSG fortunately collects; adding grids for distortion<br clear="none">(HARN) needs more information yet. But once you get into temporal changes,<br clear="none">things are even worse: models will keep changing either because of better data<br clear="none">or earthquakes (cf HTDP). This seems like a progression from a package<br clear="none">dominated by algebra to a small algebraic component attached to a large<br clear="none">and ever-growing database of parameters. I'm not arguing against it, at<br clear="none">all, just saying that it is going to be quite a challenge beyond modifying<br clear="none">the programs. (I completely lack the expertise to contribute to the code,<br clear="none">but if anyone has any geophysics questions I'm happy to try to answer them).<br clear="none"><br clear="none">Thanks<span class="ydpf9e2c943yiv8266579988HOEnZb"><font color="#888888"><br clear="none">Duncan Agnew<br clear="none"></font></span></div><div class="ydpf9e2c943yiv8266579988HOEnZb"><div class="ydpf9e2c943yiv8266579988h5"><div class="ydpf9e2c943yiv8266579988gmail_extra"><div class="ydpf9e2c943yiv8266579988gmail_quote"><blockquote class="ydpf9e2c943yiv8266579988gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="ydpf9e2c943yiv8266579988gmail_extra"><br clear="none"></div>
<br clear="none">______________________________ _________________<br clear="none">
Proj mailing list<br clear="none">
<a shape="rect" href="mailto:Proj@lists.maptools.org" rel="nofollow" target="_blank">Proj@lists.maptools.org</a><br clear="none">
<a shape="rect" href="http://lists.maptools.org/mailman/listinfo/proj" rel="nofollow" target="_blank">http://lists.maptools.org/mail man/listinfo/proj</a><br clear="none"></blockquote></div><br clear="none"></div>
</div></div><br clear="none">______________________________ _________________<br clear="none">
Proj mailing list<br clear="none">
<a shape="rect" href="mailto:Proj@lists.maptools.org" rel="nofollow" target="_blank">Proj@lists.maptools.org</a><br clear="none">
<a shape="rect" href="http://lists.maptools.org/mailman/listinfo/proj" rel="nofollow" target="_blank">http://lists.maptools.org/ mailman/listinfo/proj</a><br clear="none"></blockquote></div><br clear="none"></div></div></div></div></div><div class="ydpf9e2c943yqt2406945106" id="ydpf9e2c943yqtfd43811">_______________________________________________<br clear="none">Proj mailing list<br clear="none"><a shape="rect" href="mailto:Proj@lists.maptools.org" rel="nofollow" target="_blank">Proj@lists.maptools.org</a><br clear="none"><a shape="rect" href="http://lists.maptools.org/mailman/listinfo/proj" rel="nofollow" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a></div></div></div></div></div></body></html>