[postgis-tickets] [PostGIS] #4718: ST_Azimuth calculating with point of geography type returns negative value

PostGIS trac at osgeo.org
Wed Jul 8 03:12:56 PDT 2020


#4718: ST_Azimuth calculating with point of geography type returns negative value
---------------------+---------------------------
 Reporter:  lakelei  |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 3.1.0
Component:  postgis  |    Version:  3.0.x
 Keywords:           |
---------------------+---------------------------
 According to the doc description: The azimuth is angle is referenced from
 north, and is positive clockwise: North = 0; East = π/2; South = π; West =
 3π/2. But when giving two points of geography type, it returns negative
 value. eg: \\
 SELECT degrees(ST_Azimuth(ST_GeographyFromText('SRID=4326;POINT(77.46412
 37.96999)'), ST_GeographyFromText('SRID=4326;POINT(77.46409 37.96999)')))
 AS degA_B;

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4718>
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