Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#1957 closed defect (fixed)

ST_Distance to a one-point LineString returns NULL

Reported by: pramsey Owned by: pramsey
Priority: medium Milestone: PostGIS 1.5.6
Component: postgis Version: 1.5.X
Keywords: Cc:

Description

Example

select st_distance(st_makeline(ARRAY['POINT(1 1)'::geometry]), 'POINT(0 0)'::geometry);

In the interests of tolerance and interstellar peace, it should maybe return the distance from the one point to the other.

Change History (3)

comment:1 Changed 6 years ago by pramsey

Resolution: fixed
Status: newclosed

Committed to 1.5 at r10242 and 2.0 at r10243

comment:2 Changed 6 years ago by strk

No testcase for this ? We need one !

comment:3 Changed 6 years ago by pramsey

OK, a test in at r10249, r10250, r10251

Note: See TracTickets for help on using tickets.