<div>  OGRLinearRing oSpatialFilter;</div><div><br></div><div>  oSpatialFilter.setNumPoints(5);</div><div>  oSpatialFilter.setPoint(0, rect.minx, rect.miny);</div><div>  oSpatialFilter.setPoint(1, rect.maxx, rect.miny);</div>

<div>  oSpatialFilter.setPoint(2, rect.maxx, rect.maxy);</div><div>  oSpatialFilter.setPoint(3, rect.minx, rect.maxy);</div><div>  oSpatialFilter.setPoint(4, rect.minx, rect.miny);</div><div><br></div><div> poLayer-&gt;SetSpatialFilter( &amp;oSpatialFilter );</div>

<div>  poLayer-&gt;ResetReading();</div><div><br></div><div><br></div><div>poFeature = poLayer-&gt;GetNextFeature() gives me null poFeature</div><div><br></div><div>does spatialFilter requires gdal build with geos?</div>
<div>
<br></div><div>with 1.8.0 ubuntu version I am able to use spatialFilter but not with trunk</div><div><br></div>-- <br><div><font face="arial, helvetica, sans-serif">Regards,<br>   Rashad</font></div><br>