[postgis-tickets] [PostGIS] #5008: ST_DWithin('POINT EMPTY', 'POINT EMPTY', 'Inf') returns true

PostGIS trac at osgeo.org
Mon Oct 4 10:21:07 PDT 2021


#5008: ST_DWithin('POINT EMPTY', 'POINT EMPTY', 'Inf') returns true
----------------------+---------------------------
  Reporter:  strk     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 3.3.0
 Component:  postgis  |    Version:
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by mdavis):

 Replying to [ticket:5008 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.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5008#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list