Skip to content


do not consider layer extents containing 'inf' or 'nan' for wms bound…
Browse files Browse the repository at this point in the history
…ing box calculation

git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 10, 2006
1 parent 196f610 commit 433b0ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/providers/wms/qgswmsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) || \

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

0 comments on commit 433b0ab

Please sign in to comment.