Re: [Qgis-user] about some ellipsoïdal distances : I fully agree . just may be better to use symbol rf (or something else) for inverse flattening ...

2012-04-07 Thread G. Allegri
You're right. I was right thinking about it yesterday while committing the changes. *f *is misleading, and it should be substituded by *rf* in my formula. Thanks for having reported your measurements. They helped a lot to figure out the bug ;) giovanni 2012/4/6 blavet > ** > *Good evening* > >

Re: [Qgis-user] about some ellipsoïdal distances : I fully agree . just may be better to use symbol rf (or something else) for inverse flattening ...

2012-04-06 Thread G. Allegri
I will read your post with more attention tomorrow. Anyway, the code is correct now, because my patch was included this morning :) giovanni 2012/4/6 blavet > ** > *Good evening* > > Of course thank you again i fully agree with what you found which is > mathematically correct , > it was not eas

Re: [Qgis-user] about some ellipsoïdal distances : I fully agree . just may be better to use symbol rf (or something else) for inverse flattening ...

2012-04-06 Thread blavet
Good evening Of course thank you again i fully agree with what you found which is mathematically correct ,  it was not easy to find, and is essential for debugging the calculation of ellipsoîdal distances I just had a quick look at the code found at http://trac.osgeo.org/qgis/browser/trunk/qg

Re: [Qgis-user] about some ellipsoïdal distances

2012-04-06 Thread blavet
Thank you very much for this very fast and efficient diagnosis Best regards Didier Blavet Le 06/04/2012 12:01, G. Allegri a écrit : Probably I've found the bug. In Qgis the semi-minor axis of the ellipsoid is calculated with: b = a - (f/a) where  b = semi-minor axis a =

Re: [Qgis-user] about some ellipsoïdal distances

2012-04-06 Thread G. Allegri
Not at all. The change has already been committed to the development version. giovanni 2012/4/6 blavet > ** > Thank you very much for this very fast and efficient diagnosis > > Best regards > > Didier Blavet > > Le 06/04/2012 12:01, G. Allegri a écrit : > > Probably I've found the bug. > In Qgi

Re: [Qgis-user] about some ellipsoïdal distances

2012-04-06 Thread G. Allegri
And ticket: http://hub.qgis.org/issues/5329 2012/4/6 G. Allegri > Pull request done: https://github.com/qgis/Quantum-GIS/pull/115 > > giovanni > > > 2012/4/6 Paolo Cavallini > >> Il 06/04/2012 12:01, G. Allegri ha scritto: >> > Probably I've found the bug. >> > In Qgis the semi-minor axis of

Re: [Qgis-user] about some ellipsoïdal distances

2012-04-06 Thread G. Allegri
Pull request done: https://github.com/qgis/Quantum-GIS/pull/115 giovanni 2012/4/6 Paolo Cavallini > Il 06/04/2012 12:01, G. Allegri ha scritto: > > Probably I've found the bug. > > In Qgis the semi-minor axis of the ellipsoid is calculated with: > > > > b = a - (f/a) > > > > where > > b = semi

Re: [Qgis-user] about some ellipsoïdal distances

2012-04-06 Thread Paolo Cavallini
Il 06/04/2012 12:01, G. Allegri ha scritto: > Probably I've found the bug. > In Qgis the semi-minor axis of the ellipsoid is calculated with: > > b = a - (f/a) > > where > b = semi-minor axis > a = semi-majot axis > f = inverse flattening > > while it should be: > > b = a - (a/f) > > > In Qg

Re: [Qgis-user] about some ellipsoïdal distances

2012-04-06 Thread G. Allegri
Probably I've found the bug. In Qgis the semi-minor axis of the ellipsoid is calculated with: b = a - (f/a) where b = semi-minor axis a = semi-majot axis f = inverse flattening while it should be: b = a - (a/f) In Qgis the WGS84 semi-minor axis is 6378136,xxx while it should be 6356752.xxx g

Re: [Qgis-user] about some ellipsoïdal distances

2012-04-06 Thread G. Allegri
AFAICS, the Qgis formula [1] to calculate distances on ellipssoid is Vincenty's. I've reproduced it for the first set of points and I can confirm tha QGis gives 540.9973919726176 m The online Vincenty calculator [2] gives 540.045 m I suppose it's a rounding issue. I will investigate it more... g

[Qgis-user] about some ellipsoïdal distances

2012-04-05 Thread blavet
Dear QGis Developpers and Users First of all  many thanks to the Developpers of Qgis for this wonderful and user friendly Sofwaret. I'm sure that Qgis will become more and more a "standard" in the next few years So, just a small point  (and I hope to be  wrong with this, but if it is the cas