if( poSpatialFilter != null )
poLayer.SetSpatialFilter( poSpatialFilter );
if (bDisplayProgress)
{
if (!poLayer.TestCapability(ogr.OLCFastFeatureCount))
{
System.err.println("Progress turned off as fast feature count is not available.");
bDisplayProgress = false;
}
else