Skip to content
Browse files

don't let blank tile if wcs result bbox doesn't match the requested one

(cherry picked from commit 9e540f0)
  • Loading branch information
troopa81 authored and nyalldawson committed Feb 5, 2020
1 parent c14c6c8 commit 3640c654bada8b1806e6c2665d70f3a97cf320ce
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/providers/wcs/qgswcsprovider.cpp
@@ -580,13 +580,12 @@ bool QgsWcsProvider::readBlock( int bandNo, QgsRectangle const &viewExtent, int
!qgsDoubleNearSig( cacheExtent.xMaximum(), viewExtent.xMaximum(), 10 ) ||
!qgsDoubleNearSig( cacheExtent.yMaximum(), viewExtent.yMaximum(), 10 ) )
// Just print a message so user is aware of a server side issue but don't left
// the tile blank so we can deal with eventually misconfigured WCS server

QgsDebugMsg( QStringLiteral( "cacheExtent and viewExtent differ" ) );
QgsMessageLog::logMessage( tr( "Received coverage has wrong extent %1 (expected %2)" ).arg( cacheExtent.toString(), viewExtent.toString() ), tr( "WCS" ) );
// We are doing all possible to avoid this situation,
// If it happens, it would be possible to rescale the portion we get
// to only part of the data block, but it is better to left it
// blank, so that the problem may be discovered in its origin.
return false;

0 comments on commit 3640c65

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