Skip to content
Permalink
Browse files

WMS server: parse bounding box only if the BBOX parameter is really t…

…here
  • Loading branch information
mhugent committed Dec 1, 2016
1 parent e6d4010 commit ee3a49353f1c8141d45ce392c7182a40089068a8
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/server/qgswmsserver.cpp
@@ -2089,8 +2089,13 @@ int QgsWmsServer::configureMapRender( const QPaintDevice* paintDevice ) const
mMapRenderer->setOutputSize( QSize( paintDevice->width(), paintDevice->height() ), paintDevice->logicalDpiX() );

//map extent
bool bboxOk;
QgsRectangle mapExtent = _parseBBOX( mParameters.value( QStringLiteral( "BBOX" ), QStringLiteral( "0,0,0,0" ) ), bboxOk );
bool bboxOk = true;
QgsRectangle mapExtent;
if( mParameters.contains( "BBOX" ) )
{
mapExtent = _parseBBOX( mParameters.value( QStringLiteral( "BBOX" ), QStringLiteral( "0,0,0,0" ) ), bboxOk );
}

if ( !bboxOk )
{
//throw a service exception

0 comments on commit ee3a493

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