[postgis-devel] [PostGIS] #1453: ST_Equals(empty, empty) returns false

PostGIS trac at osgeo.org
Thu Jan 12 03:38:17 PST 2012


#1453: ST_Equals(empty, empty) returns false
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by strk):

 So, ST_Equals is broken only because of the use of && done by the SQL
 wrapper.
 _ST_Equals already returns true for 2 EMPTY parameters (no matter type and
 dimension).

 I propose to switch ST_Equals to use ~= which means "same box".
 There should be no issue with floats vs. double as we always round boxes
 to float be them computed or cached. If we still don't it's a bug in our
 side which we want to fix.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1453#comment:5>
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-devel mailing list