[postgis-devel] [PostGIS] #1280: No geoms in table are within the table extent

PostGIS trac at osgeo.org
Fri Nov 11 15:09:48 PST 2011


#1280: No geoms in table are within the table extent
----------------------+-----------------------------------------------------
  Reporter:  strk     |       Owner:  pramsey      
      Type:  defect   |      Status:  reopened     
  Priority:  blocker  |   Milestone:  PostGIS 2.0.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:               
----------------------+-----------------------------------------------------
Changes (by strk):

  * status:  closed => reopened
  * resolution:  invalid =>


Comment:

 Here's a culprit: gserialized_datum_predicate_2d

 {{{
         /* Must be able to build box for each argument (ie, not empty
 geometry)
            and overlap boxes to return true. */
         if ( (gserialized_datum_get_box2df_p(gs1, &b1) == LW_SUCCESS) &&
              (gserialized_datum_get_box2df_p(gs2, &b2) == LW_SUCCESS) &&
               predicate(&b1, &b2) )
         {
                 POSTGIS_DEBUGF(3, "got boxes %s and %s",
 box2df_to_string(&b1), box2df_to_string(&b2));
                 return LW_TRUE;
         }
         return LW_FALSE;
 }}}

 Meaning if gserialized_datum_get_box2df_p fails we return false ?! Is this
 what && is supposed to do ? Shouldn't it _compute_ the box if not
 available instead ? I'll actually re-open this as it's something that
 needs to be fixed.

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