mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
do not consider layer extents containing 'inf' or 'nan' for wms bounding box calculation
git-svn-id: http://svn.osgeo.org/qgis/trunk@5583 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
42d814ec16
commit
af33fb9a98
@ -1941,6 +1941,13 @@ bool QgsWmsProvider::calculateExtent()
|
|||||||
continue; //ignore extents of layers which cannot be transformed info the required CRS
|
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
|
// add to the combined extent of all the active sublayers
|
||||||
if (firstLayer)
|
if (firstLayer)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user