Skip to content

Commit f6806a9

Browse files
committedJan 25, 2013
WCS max extent verification fix for servers without overvies
1 parent 4736393 commit f6806a9

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed
 

‎src/providers/wcs/qgswcsprovider.cpp

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,8 @@ bool QgsWcsProvider::calculateExtent()
13611361

13621362
QgsDebugMsg( "mCoverageExtent = " + mCoverageExtent.toString() );
13631363

1364-
// It may happen (GeoServer) that extent reported in spatialDomain.Envelope is larger // than the coverage. Then if that larger BBOX is requested, the server returns
1364+
// It may happen (GeoServer) that extent reported in spatialDomain.Envelope is larger
1365+
// than the coverage. Then if that larger BBOX is requested, the server returns
13651366
// request BBOX intersected with coverage box scaled to requested WIDTH and HEIGHT.
13661367
// GDAL WCS client does not suffer from this probably because it probably takes
13671368
// extent from lonLatEnvelope (it probably does not calculate it from
@@ -1403,9 +1404,18 @@ bool QgsWcsProvider::calculateExtent()
14031404
}
14041405
else
14051406
{
1407+
// Unfortunately it may also happen that a server (cubewerx.com) does not have
1408+
// overviews and it is not able to respond for the whole extent within timeout.
1409+
// It returns timeout error.
1410+
// In that case (if request failed) we do not report error to allow to work
1411+
// with such servers on smaller portions of extent
1412+
// (http://lists.osgeo.org/pipermail/qgis-developer/2013-January/024019.html)
1413+
1414+
// Unfortunately even if we get over this 10x10 check, QGIS also requests
1415+
// 32x32 thumbnail where it is waiting for another timeout
1416+
14061417
QgsDebugMsg( "Cannot get cache to verify extent" );
1407-
setError( mCachedError );
1408-
return false;
1418+
QgsMessageLog::logMessage( tr( "Cannot verify coverage full extent: %1" ).arg( mCachedError.message() ), tr( "WCS" ) );
14091419
}
14101420

14111421
return true;

0 commit comments

Comments
 (0)
Please sign in to comment.