[postgis-tickets] [PostGIS] #4888: st_azimuth geography calculation result mismatch version 3.1.1

PostGIS trac at osgeo.org
Mon Apr 19 09:50:02 PDT 2021


#4888: st_azimuth geography calculation result mismatch version 3.1.1
----------------------+---------------------------
  Reporter:  gislars  |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  high     |  Milestone:  PostGIS 3.1.2
 Component:  postgis  |    Version:  3.1.x
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by logi):

 OK, this is actually fixed on master. I'm looking at this code which seems
 to be a bit more sophisticated than my line distinguishing -0 from +0.
 ```
     /* Do the direction calculation */
     az = spheroid_direction(&g1, &g2, spheroid);
     /* Ensure result is positive */
     return az < -0 ? 2*M_PI + az : az;
     // return az;
 ```

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4888#comment:5>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list