[Qgis-developer] (prabable) bug in ellipsoid semi-minor axis
calculation inside QgsDistanceArea
G. Allegri
giohappy at gmail.com
Fri Apr 6 06:04:57 EDT 2012
In Qgis the semi-minor axis of the ellipsoid is calculated [1] 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
This causes wrong distance calculations on ellipsoid as reported here:
http://lists.osgeo.org/pipermail/qgis-user/2012-April/016535.html
giovanni
[1]
http://trac.osgeo.org/qgis/browser/trunk/qgis/src/core/qgsdistancearea.cpp#L153
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120406/fce610a7/attachment.html
More information about the Qgis-developer
mailing list