<div dir="ltr">Thanks for answering. Geographiclib has a good summary of the benefits over vincinty. <br><br><a href="https://geographiclib.sourceforge.io/html/python/geodesics.html">https://geographiclib.sourceforge.io/html/python/geodesics.html</a><br><p>The algorithms implemented by this package are given in Karney (2013)
and are based on Bessel (1825) and Helmert (1880); the algorithm for
areas is based on Danielsen (1989).  These improve on the work of
Vincenty (1975) in the following respects:</p>
<ul class="gmail-simple"><li>The results are accurate to round-off for terrestrial ellipsoids (the
error in the distance is less then 15 nanometers, compared to 0.1 mm
for Vincenty).</li><li>The solution of the inverse problem is always found.  (Vincenty’s
method fails to converge for nearly antipodal points.)</li><li>The routines calculate differential and integral properties of a
geodesic.  This allows, for example, the area of a geodesic polygon to
be computed.</li></ul><p>Here are my questions.</p><p>1. Sorry for my lack of knowledge here. I have gotten into the plugin development and I have been thinking that I could possibly contribute to the actual QGIS code, but I am not sure what you want done when you say to do a "pull request on the topic". <br></p><p>2. geographiclib already has done the work for the more accurate geodesic algorithms. They use the MIT/X11 license. Is that compatible with the QGIS GNU2 license? It would certainly be easiest to use that code rather than trying to reinvent it.</p><p>3. What is the best way to learn the steps necessary to contribute to the core QGIS project?</p><p><br></p><p>Thanks!<br></p></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 13, 2017 at 8:35 AM, Martin Dobias <span dir="ltr"><<a href="mailto:wonder.sk@gmail.com" target="_blank">wonder.sk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Calvin<br>
<span class=""><br>
On Mon, Apr 3, 2017 at 11:00 PM, C Hamilton <<a href="mailto:adenaculture@gmail.com">adenaculture@gmail.com</a>> wrote:<br>
> I had been wondering what algorithm is being used for the methods azimuth,<br>
> distance, and  project in the QgsPoint class, but in looking at the code it<br>
> is simply cartesian plane math. It looks like the qgsdistancearea class is<br>
> using vincinty math if I am examining the code correctly.<br>
><br>
> Vincinty is more accurate than the great circle, but fails in some cases and<br>
> there are more accurate methods. I apologize if I have failed to find the<br>
> right classes and methods in the API, but why doesn't the API provide the<br>
> more accurate geodesic calculations that are in geographiclib. It also seems<br>
> like it would be good to also provide great circle math as an option. Am I<br>
> missing it in the API or is it simply not there? If it is not there is<br>
> anyone working on adding it?<br>
<br>
</span>QgsDistanceArea is currently the only class in QGIS for doing<br>
measurements - either euclidean or using Vincenty's formulae. I have<br>
not heard about anyone currently working on adding more methods for<br>
calculation of distances or areas. I am no expert in geodesic<br>
calculations - what other methods would you like to have in QGIS and<br>
how are their results different from Vincenty's formulae?<br>
<span class=""><br>
<br>
> Are there any efforts going on to flesh out the QGIS API a little more.<br>
> Generally, the methods and parameters are not well documented if it is not<br>
> obvious from the name.<br>
<br>
</span>Nowadays there is quite a lot of effort being done to improve QGIS API<br>
for the upcoming release of 3.0. Please feel free to join the effort<br>
and submit pull requests on this topic - that would be very<br>
appreciated!<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888">Martin<br>
</font></span></blockquote></div><br></div>