Opened 6 years ago

Closed 6 years ago

#1791 closed defect (fixed)

ST_Azimuth returning null with very close (but not equal) points

Reported by: strk Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.1
Component: postgis Version: 2.0.x
Keywords: Cc:

Description

Given this input:

010100000000000000004065C0041AD965BE5554C0
010100000001000000004065C0041AD965BE5554C0

ST_Azimuth returns NULL.

See #1789 for origins of this

Change History (2)

comment:1 Changed 6 years ago by strk

This may possibly be improved by anchoring the segment to the origin and scaling up

comment:2 Changed 6 years ago by strk

Resolution: fixed
Status: newclosed

Doh... the code was using FP_EQUALS and intentionally returning NULL for very close (but not equal) points.

Fixed in r9682

Note: See TracTickets for help on using tickets.