Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong ellipsoid semi-minor axis calculation inside QgsDistanceArea #15030

Closed
qgib opened this issue Apr 6, 2012 · 1 comment
Closed

wrong ellipsoid semi-minor axis calculation inside QgsDistanceArea #15030

qgib opened this issue Apr 6, 2012 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority

Comments

@qgib
Copy link
Contributor

qgib commented Apr 6, 2012

Author Name: Giovanni Allegri (@giohappy)
Original Redmine Issue: 5329
Affected QGIS version: master


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

I've done a pull request into master repo: #115

giovanni

[1]
http://trac.osgeo.org/qgis/browser/trunk/qgis/src/core/qgsdistancearea.cpp#L153


@qgib
Copy link
Contributor Author

qgib commented Apr 6, 2012

Author Name: Nathan Woodrow (@NathanW2)


Fixed in 55d9268

Thanks


  • resolution was changed from to fixed
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority
Projects
None yet
Development

No branches or pull requests

1 participant