[postgis-tickets] [PostGIS] #4840: ST_Azimuth with geography provides wrong results

PostGIS trac at osgeo.org
Thu Feb 18 08:58:12 PST 2021


#4840: ST_Azimuth with geography provides wrong results
-----------------------+---------------------------
  Reporter:  postlude  |      Owner:  pramsey
      Type:  defect    |     Status:  new
  Priority:  medium    |  Milestone:  PostGIS 3.1.2
 Component:  postgis   |    Version:  3.1.x
Resolution:            |   Keywords:
-----------------------+---------------------------

Comment (by pramsey):

 Something has changed in 3.1 and up, I get results as expected in 3.0
 (modulo negative angles)
 {{{
 az_n  | 0
 az_ne | 29.169426168649625
 az_e  | 89.59042054976433
 az_se | 149.39160891085518
 az_s  | 180
 az_sw | -149.39160891085518
 az_w  | -89.59042054976433
 az_nw | -29.169426168649625
 }}}
 Come to think of it, the wrong results in 3.1+ may well be a result of a
 bad fix trying address those negative angles. (Mine are even worse that
 yours?)
 {{{
 az_n  | 180
 az_ne | 29.169426168649625
 az_e  | 89.59042054976433
 az_se | 149.39160891085518
 az_s  | 180
 az_sw | 329.39160891085515
 az_w  | 269.5904205497643
 az_nw | 209.16942616864964
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4840#comment:1>
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