Opened 3 years ago

Closed 3 years ago

#5008 closed defect (fixed)

ST_DWithin('POINT EMPTY', 'POINT EMPTY', 'Inf') returns true

Reported by: strk Owned by: pramsey
Priority: medium Milestone: PostGIS 3.2.0
Component: postgis Version:
Keywords: Cc:

Description

Should EMPTY be within Infinite distance from EMPTY ? Phylosophically, maybe, but ... for any practical reason, does it make sense to return true on that case ?

Change History (4)

in reply to:  description comment:1 by mdavis, 3 years ago

Replying to strk:

Should EMPTY be within Infinite distance from EMPTY ? Phylosophically, maybe, but ... for any practical reason, does it make sense to return true on that case ?

Seems too nit-picky to me. I think ST_DWithin(geomA, geomB, *) should always be FALSE if either argument is EMPTY.

comment:2 by Sandro Santilli <strk@…>, 3 years ago

In 0394036c/git:

Have ST_DWithin with EMPTY operand always return false

References #5008

comment:3 by strk, 3 years ago

Ok, fixed in master branch. I guess we could want to backport this

comment:4 by strk, 3 years ago

Milestone: PostGIS 3.3.0PostGIS 3.2.0
Resolution: fixed
Status: newclosed

Not backporting, so this is closed in 3.2.0

Note: See TracTickets for help on using tickets.