Skip to content
Permalink
Browse files

[afs] More responsive cancelation for feature requests

  • Loading branch information
nyalldawson committed Feb 20, 2018
1 parent 668af8c commit 9471c5d9ab055bdd9a0c690ea4de69a4341f83b6
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/providers/arcgisrest/qgsafsfeatureiterator.cpp
@@ -148,7 +148,10 @@ bool QgsAfsFeatureIterator::fetchFeature( QgsFeature &f )
if ( mRemainingFeatureIds.empty() )
return false;

bool result = mSource->sharedData()->getFeature( mRequest.filterFid(), f );
bool result = mSource->sharedData()->getFeature( mRequest.filterFid(), f, QgsRectangle(), mInterruptionChecker );
if ( mInterruptionChecker && mInterruptionChecker->isCanceled() )
return false;

geometryToDestinationCrs( f, mTransform );
f.setValid( result );
mRemainingFeatureIds.removeAll( f.id() );

0 comments on commit 9471c5d

Please sign in to comment.
You can’t perform that action at this time.