Closed theirix closed 2 years ago
Investigated and resolved: the initial forward azimuth/bearing was set to 0 and should be left undefined.
The upcoming release PyGeodesy 22.8.22 will include fix in function sphericalTrigonometric.areaOf
and another test case for all spherical and ellipsoidal LatLon
s.
Great, thank you for the quick fix!
PyGeodesy 22.8.22 is available and includes the fix for function sphericalTrigonometry.areaOf
, among several other things.
Please confirm and if this issue #71 is fixed, please close it.
Thank you for reporting the problem and especially for providing a test case to reproduce it. Greatly appreciated!
Tested the new version – works as expected.
Glad to help!
Hello! In latest versions of pygeodesy (approximate after 20.8.15) there is a subtle bug in calculating polygon area using sphericalGeometry. Area value depends on the order of coordinates provided to
areaOf
. Elliptical geometry is not affected by this bug. Check the script for reproducing the problem. It prints the ratio of area with forward and reverse coordinate order. It should be exactly 1.Not all polygons are calculated in a wrong way. Polygon generated with
delta=1
is bad:Polygon generated with
delta=0
is good:The script
Script output for the latest version:
Old versions are not affected by this problem: