Opened 7 years ago

Closed 7 years ago

#1264 closed defect (fixed)

st_dwithin(geog, geog, 0) doesn't work?

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

Description

Just tried to do a zero-radius query using st_dwithin, a polygon and a point, and got no results! Works with any non-zero radius!

Change History (3)

comment:1 Changed 7 years ago by pramsey

-- true
select st_dwithin('POLYGON((-10 -10, -10 10, 10 10, 10 -10, -10 -10))'::geography, 'POINT(0 0)'::geography, 0.1);
-- false !??
select st_dwithin('POLYGON((-10 -10, -10 10, 10 10, 10 -10, -10 -10))'::geography, 'POINT(0 0)'::geography, 0);

comment:2 Changed 7 years ago by pramsey

This also applies to 2.0

comment:3 Changed 7 years ago by pramsey

Resolution: fixed
Status: newclosed

Fixed in trunk at r9669, in 1.5 at r r9668, r9667

Note: See TracTickets for help on using tickets.