Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[BUGFIX][QGIS-Server] Don't failed when transform boundingbox
  • Loading branch information
rldhont committed Oct 21, 2016
1 parent 7ff0883 commit 009c0ea
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/server/qgsconfigparserutils.cpp
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 009c0ea

Please sign in to comment.