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/qgis@5583 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 10, 2006
1 parent 196f610 commit 433b0ab59dbbafad8af19d13d588783a9d428c3a
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/providers/wms/qgswmsprovider.cpp
@@ -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 433b0ab

Please sign in to comment.