Skip to content
Permalink
Browse files

[BUGFIX][QGIS-Server] Don't failed when transform boundingbox

  • Loading branch information
rldhont committed Oct 21, 2016
1 parent 2475ee5 commit 2b9f475a842c6a158754d19eacae7ab6cb2a3544
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/server/qgsconfigparserutils.cpp
@@ -204,7 +204,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;
}
}

if ( crsExtent.isNull() )

0 comments on commit 2b9f475

Please sign in to comment.
You can’t perform that action at this time.