Skip to content

Commit

Permalink
enabled resampling for wms, fixes #7144
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed May 15, 2013
1 parent 378a55e commit c3bb8db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/raster/qgsrasterresamplefilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c3bb8db

Please sign in to comment.