Skip to content
Browse files

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

  • Loading branch information
troopa81 authored and nyalldawson committed Feb 5, 2020
1 parent dfdb9cf commit 9e540f07f5bac633ceb92cf620c197a94cd19caa
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/providers/wcs/qgswcsprovider.cpp
@@ -582,13 +582,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 9e540f0

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