[postgis-devel] [PostGIS] #1273: ST_Equals( mypoint, postgis_addbbox(mypoint) ) = FALSE

PostGIS trac at osgeo.org
Thu Nov 10 03:15:38 PST 2011


#1273: ST_Equals( mypoint, postgis_addbbox(mypoint) )  = FALSE
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  high     |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by strk):

 r8134 fixes this case by having gserialized_read_gbox_p correctly produce
 the BOX "as if it was just read from cache" even in the POINT and 2-points
 LINE case.

 I'm not completely sure about what would happen with other kind of
 geometries as I see gserialized_get_gbox_p calls lwgeom_calculate_gbox in
 that case, which probably doesn't produce a FLOAT-aware version of them.

 I guess it will be worth adding much more tests for that. Probably
 involving postgis_dropbbox and a MULTIPOINT would do. I'll leave this
 ticket in case someone wants to work on the tests (paul, you do want to
 work on the tests don't you ? :)

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1273#comment:13>
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