id summary reporter owner description type status priority milestone component version severity resolution keywords cc 2454 OGRLayer::FilterGeometry is selecting more features than expected when the filter geometry is an envelope Even Rouault Even Rouault "This is due to the following code which assumes that if the filter is an envelope, we don't have further tests to do. The current code keeps features that should be discarded {{{ /* -------------------------------------------------------------------- */ /* Fallback to full intersect test (using GEOS) if we still */ /* don't know for sure. */ /* -------------------------------------------------------------------- */ if( m_bFilterIsEnvelope ) return TRUE; else { if( OGRGeometryFactory::haveGEOS() ) return m_poFilterGeom->Intersects( poGeometry ); else return TRUE; } }}} Current state of ogr_shape_9 test is a consequence of this wrong test. {{{ ############################################################################### # Test that we don't return a polygon if we are ""inside"" but non-overlapping. # For now we actually do return this shape, but eventually we won't. def ogr_shape_9(): }}} " defect closed normal 1.5.3 OGR_SF normal fixed ogr filter geometry