Skip to content
Permalink
Browse files

enabled resampling for wms, fixes #7144

  • Loading branch information
blazek committed May 15, 2013
1 parent 378a55e commit c3bb8db7fc27a06b67dc79f0d24a5e9f3a6c64af
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/core/raster/qgsrasterresamplefilter.cpp
@@ -149,6 +149,13 @@ QgsRasterBlock * QgsRasterResampleFilter::block( int bandNo, QgsRectangle const
oversampling = ( pixelRatio > mMaxOversampling ) ? mMaxOversampling : pixelRatio;
QgsDebugMsg( QString( "xRes = %1 providerXRes = %2 pixelRatio = %3 oversampling = %4" ).arg( xRes ).arg( providerXRes ).arg( pixelRatio ).arg( oversampling ) );
}
else
{
// We don't know exact data source resolution (WMS) so we expect that
// server data have higher resolution (which is not always true) and use
// mMaxOversampling
oversampling = mMaxOversampling;
}
}

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

0 comments on commit c3bb8db

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