Ticket #1264 (closed defect: fixed)

Opened 19 months ago

Last modified 13 months ago

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

Changed 13 months 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);

Changed 13 months ago by pramsey

This also applies to 2.0

Changed 13 months ago by pramsey

  • status changed from new to closed
  • resolution set to fixed

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

Note: See TracTickets for help on using tickets.