Skip to content
Permalink
Browse files

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

…here
  • Loading branch information
mhugent authored and rldhont committed Dec 12, 2016
1 parent dd688a5 commit 38551154aa0185fcbb84eba61f313ebd4e0697db
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/server/qgswmsserver.cpp
@@ -2080,8 +2080,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( "BBOX", "0,0,0,0" ), bboxOk );
bool bboxOk = true;
QgsRectangle mapExtent;
if( mParameters.contains( "BBOX" ) )
{
mapExtent = _parseBBOX( mParameters.value( "BBOX", "0,0,0,0" ), bboxOk );
}

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

0 comments on commit 3855115

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