Skip to content
Permalink
Browse files
do not consider layer extents containing 'inf' or 'nan' for wms bound…
…ing box calculation

git-svn-id: http://svn.osgeo.org/qgis/trunk@5583 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 10, 2006
1 parent 42d814e commit af33fb9
Showing 1 changed file with 7 additions and 0 deletions.
@@ -1941,6 +1941,13 @@ bool QgsWmsProvider::calculateExtent()
continue; //ignore extents of layers which cannot be transformed info the required CRS
}

//make sure extent does not contain 'inf' or 'nan'
if(!isfinite(extent.xMin()) || !isfinite((int)extent.yMin()) || !isfinite(extent.xMax()) || \
!isfinite((int)extent.yMax()))
{
continue;
}

// add to the combined extent of all the active sublayers
if (firstLayer)
{

0 comments on commit af33fb9

Please sign in to comment.