@@ -843,7 +843,6 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i
843
843
}
844
844
845
845
int i = 0 ;
846
- int retry = 0 ;
847
846
for ( int row = row0; row <= row1; row++ )
848
847
{
849
848
for ( int col = col0; col <= col1; col++ )
@@ -865,6 +864,7 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i
865
864
request.setAttribute ( static_cast <QNetworkRequest::Attribute>( QNetworkRequest::User + 1 ), i );
866
865
request.setAttribute ( static_cast <QNetworkRequest::Attribute>( QNetworkRequest::User + 2 ),
867
866
QRectF ( tm ->topLeft .x () + col * twMap, tm ->topLeft .y () - ( row + 1 ) * thMap, twMap, thMap ) );
867
+ int retry = 0 ; // just for readability
868
868
request.setAttribute ( static_cast <QNetworkRequest::Attribute>( QNetworkRequest::User + 3 ), retry );
869
869
870
870
QgsDebugMsg ( QString ( " gettile: %1" ).arg ( turl ) );
@@ -902,7 +902,6 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i
902
902
url.removeQueryItem ( " TILECOL" );
903
903
904
904
int i = 0 ;
905
- int retry = 0 ;
906
905
for ( int row = row0; row <= row1; row++ )
907
906
{
908
907
for ( int col = col0; col <= col1; col++ )
@@ -920,6 +919,7 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i
920
919
request.setAttribute ( static_cast <QNetworkRequest::Attribute>( QNetworkRequest::User + 1 ), i );
921
920
request.setAttribute ( static_cast <QNetworkRequest::Attribute>( QNetworkRequest::User + 2 ),
922
921
QRectF ( tm ->topLeft .x () + col * twMap, tm ->topLeft .y () - ( row + 1 ) * thMap, twMap, thMap ) );
922
+ int retry = 0 ; // just for readability
923
923
request.setAttribute ( static_cast <QNetworkRequest::Attribute>( QNetworkRequest::User + 3 ), retry );
924
924
925
925
QgsDebugMsg ( QString ( " gettile: %1" ).arg ( turl ) );
@@ -944,7 +944,6 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i
944
944
}
945
945
946
946
int i = 0 ;
947
- int retry = 0 ;
948
947
for ( int row = row0; row <= row1; row++ )
949
948
{
950
949
for ( int col = col0; col <= col1; col++ )
@@ -962,6 +961,7 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i
962
961
request.setAttribute ( static_cast <QNetworkRequest::Attribute>( QNetworkRequest::User + 1 ), i );
963
962
request.setAttribute ( static_cast <QNetworkRequest::Attribute>( QNetworkRequest::User + 2 ),
964
963
QRectF ( tm ->topLeft .x () + col * twMap, tm ->topLeft .y () - ( row + 1 ) * thMap, twMap, thMap ) );
964
+ int retry = 0 ; // just for readability
965
965
request.setAttribute ( static_cast <QNetworkRequest::Attribute>( QNetworkRequest::User + 3 ), retry );
966
966
967
967
QgsDebugMsg ( QString ( " gettile: %1" ).arg ( turl ) );
@@ -1039,6 +1039,7 @@ void QgsWmsProvider::readBlock( int bandNo, QgsRectangle const & viewExtent, in
1039
1039
// delete image;
1040
1040
}
1041
1041
1042
+ // tile retry management developed with funding from Regione Toscana-SITA
1042
1043
void QgsWmsProvider::repeatTileRequest ( QNetworkRequest const &oldRequest )
1043
1044
{
1044
1045
if ( mErrors == 100 )
0 commit comments