Skip to content

Commit adc88f2

Browse files
committed
Bump up the tile request limit in WMS provider
Max. 100 tiles is just too low. The max request area is currently 2000x2000 pixels which boils down to approx 8x8 tiles of size 256x256, therefore max 64 tiles. However this is the ideal case if the view scale matches the scale of tiles. If the map view scale is approx in between two levels, we may need 12x12 tiles to serve the request, so bumping the maximum to 256 should be enough.
1 parent 0259935 commit adc88f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/wms/qgswmsprovider.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -710,9 +710,9 @@ QImage *QgsWmsProvider::draw( QgsRectangle const & viewExtent, int pixelWidth, i
710710
#if QGISDEBUG
711711
int n = ( col1 - col0 + 1 ) * ( row1 - row0 + 1 );
712712
QgsDebugMsg( QString( "tile number: %1x%2 = %3" ).arg( col1 - col0 + 1 ).arg( row1 - row0 + 1 ).arg( n ) );
713-
if ( n > 100 )
713+
if ( n > 256 )
714714
{
715-
emit statusChanged( QString( "current view would need %1 tiles. tile request per draw limited to 100." ).arg( n ) );
715+
emit statusChanged( QString( "current view would need %1 tiles. tile request per draw limited to 256." ).arg( n ) );
716716
return image;
717717
}
718718
#endif

0 commit comments

Comments
 (0)