Opened 12 years ago

Closed 12 years ago

Last modified 12 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 by pramsey, 12 years ago

Resolution: fixed
Status: newclosed

Committed to 1.5 at r10242 and 2.0 at r10243

comment:2 by strk, 12 years ago

No testcase for this ? We need one !

comment:3 by pramsey, 12 years ago

OK, a test in at r10249, r10250, r10251

Note: See TracTickets for help on using tickets.