Skip to content

Commit

Permalink
[BUGFIX][QGIS-Server] Don't failed when transform boundingbox
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Oct 21, 2016
1 parent aa5d359 commit 1fbca7e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/server/qgsconfigparserutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,15 @@ void QgsConfigParserUtils::appendLayerBoundingBox( QDomElement& layerElem, QDomD
if ( !layerExtent.isNull() )
{
QgsCoordinateTransform crsTransform( layerCRS, crs );
crsExtent = crsTransform.transformBoundingBox( layerExtent );
try
{
crsExtent = crsTransform.transformBoundingBox( layerExtent );
}
catch ( QgsCsException &cse )
{
Q_UNUSED( cse );
return;
}
}

//BoundingBox element
Expand Down

0 comments on commit 1fbca7e

Please sign in to comment.