Skip to content

Commit c3bb8db

Browse files
committed
enabled resampling for wms, fixes #7144
1 parent 378a55e commit c3bb8db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/core/raster/qgsrasterresamplefilter.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,13 @@ QgsRasterBlock * QgsRasterResampleFilter::block( int bandNo, QgsRectangle const
149149
oversampling = ( pixelRatio > mMaxOversampling ) ? mMaxOversampling : pixelRatio;
150150
QgsDebugMsg( QString( "xRes = %1 providerXRes = %2 pixelRatio = %3 oversampling = %4" ).arg( xRes ).arg( providerXRes ).arg( pixelRatio ).arg( oversampling ) );
151151
}
152+
else
153+
{
154+
// We don't know exact data source resolution (WMS) so we expect that
155+
// server data have higher resolution (which is not always true) and use
156+
// mMaxOversampling
157+
oversampling = mMaxOversampling;
158+
}
152159
}
153160

154161
//set oversampling back to 1.0 if no resampler for zoomed in / zoomed out (nearest neighbour)

0 commit comments

Comments
 (0)