Opened 12 years ago

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

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

This also applies to 2.0

comment:3 by pramsey, 12 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.